Skip to content

Commit

Permalink
fix for inplace builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ipelupessy committed Dec 3, 2018
1 parent 8fc14a5 commit 4247c9f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions support/gencode.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ def get_amuse_directory_root():
def setup_sys_path():
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)
try:
src_root_directory = os.environ["MUSE_PACKAGE_DIR"]
sys.path.insert(0, src_root_directory)
except:
src_root_directory = amuse_directory
sys.path.insert(0, os.path.join(src_root_directory,"src"))
sys.path.append(os.getcwd())

Expand Down

0 comments on commit 4247c9f

Please sign in to comment.