Skip to content

Commit

Permalink
Ensure pyprefix directory exists before writing meta_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rmjarvis committed Aug 29, 2018
1 parent 22c4407 commit 427eb47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions share/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ else:
share_dir = Dir('#share').abspath

if 'install' in COMMAND_LINE_TARGETS:
meta_data_dir = os.path.join(env['PYPREFIX'], 'galsim')
if not os.path.isdir(meta_data_dir):
os.makedirs(meta_data_dir)
# Write file meta_data.py to have the correct directories.
meta_data_file = os.path.join(env['PYPREFIX'], 'galsim', 'meta_data.py')
try:
Expand Down

0 comments on commit 427eb47

Please sign in to comment.