Skip to content

Commit

Permalink
bugfix: JULIA_LOAD_PATH must always end with :
Browse files Browse the repository at this point in the history
  • Loading branch information
cako committed Feb 6, 2022
1 parent c5e38a7 commit fc42c9d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions framework/setenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ def shell_script(target, source=None, env=None):
else:
myrc += 'setenv %s %s:${%s}\n' % (par,value,par)
myrc += 'else\n'
myrc += 'setenv %s %s\n' % (par,value)
if par.startswith('JULIA'):
myrc += 'setenv %s %s:\n' % (par,value)
else:
myrc += 'setenv %s %s\n' % (par,value)
if redefine:
myrc += 'endif\n'
else:
Expand All @@ -117,7 +120,10 @@ def shell_script(target, source=None, env=None):
myrc += 'else\n'
if par == 'MANPATH':
myrc += 'unset MANPATH\n' # necessary for recent bash shells
myrc += 'export %s=%s\n' % (par,value)
if par.startswith('JULIA'):
myrc += 'export %s=%s:\n' % (par,value)
else:
myrc += 'export %s=%s\n' % (par,value)
if redefine:
myrc += 'fi\n'

Expand Down

0 comments on commit fc42c9d

Please sign in to comment.