Revert exist_ok changes to scons files (#116)
Co-authored-by: Ryan Burns <rtburns-jpl@users.noreply.github.com>LT1AB
parent
435e802f04
commit
74f6473d4a
|
@ -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':
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue