Skip to content

Commit

Permalink
Merge pull request ahay#262 from cako/patch-julia-path
Browse files Browse the repository at this point in the history
Patch JULIA_LOAD_PATH
  • Loading branch information
zhichenggeng committed Feb 7, 2022
2 parents 8aa190e + fc42c9d commit b794d9e
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 b794d9e

Please sign in to comment.