Skip to content

Commit

Permalink
fix directories to find support
Browse files Browse the repository at this point in the history
  • Loading branch information
ipelupessy committed Nov 29, 2018
1 parent 1e0b910 commit 6e8edae
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions support/gencode.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ def get_amuse_directory_root():
return os.path.abspath(directory_of_this_script)

def setup_sys_path():
try:
src_root_directory = os.environ["MUSE_PACKAGE_DIR"]
except:
src_root_directory = os.environ["AMUSE_DIR"]
amuse_directory = os.environ["AMUSE_DIR"]
sys.path.insert(0, amuse_directory)
src_root_directory = os.environ["MUSE_PACKAGE_DIR"]
sys.path.insert(0, src_root_directory)
sys.path.insert(0, os.path.join(src_root_directory,"src"))

sys.path.append(os.getcwd())

class ParseCommandLine(object):
Expand Down

0 comments on commit 6e8edae

Please sign in to comment.