Revert exist_ok changes to scons files (#116)

Co-authored-by: Ryan Burns <rtburns-jpl@users.noreply.github.com>
LT1AB
Ryan Burns 2020-04-16 09:41:15 -07:00 committed by GitHub
parent 435e802f04
commit 74f6473d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -216,10 +216,11 @@ else:
### End of GPU branch-specific modifications
os.makedirs(inst, exist_ok=True)
env.Install(inst, '__init__.py')
env.Install(inst, 'release_history.py')
if not os.path.exists(inst):
os.makedirs(inst)
v = 0
if isrerun == 'no':

View File

@ -7,7 +7,11 @@ tmpdump = 'tmpdump.json'
def createHelp(env,factoryFile,installDir):
#jng: try to have scons handle all the creation but could not figure out how
# so handled dir creation manually
os.makedirs(env['HELPER_BUILD_DIR'], exist_ok=True)
try:
os.makedirs(env['HELPER_BUILD_DIR'])
except:
# already exists
pass
try:
#one could probably also use __import__ but needs to make sure the
#the cwd is prepended to the sys.path otherwise if factoryFile = __init__.py