mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
Changed the sed '\t' to a tab char so it would work on Solaris.
This commit is contained in:
@@ -8,7 +8,7 @@ import os, string
|
||||
@VERSIONING@os.environ['MODULESHOME'] = '@prefix@'
|
||||
|
||||
if not os.environ.has_key('MODULEPATH'):
|
||||
os.environ['MODULEPATH'] = os.popen("""sed -n 's/[ \t#].*$//; /./H; $ { x; s/^\\n//; s/\\n/:/g; p }' ${MODULESHOME}/init/.modulespath""").readline()
|
||||
os.environ['MODULEPATH'] = os.popen("""sed -n 's/[ #].*$//; /./H; $ { x; s/^\\n//; s/\\n/:/g; p }' ${MODULESHOME}/init/.modulespath""").readline()
|
||||
|
||||
if not os.environ.has_key('LOADEDMODULES'):
|
||||
os.environ['LOADEDMODULES'] = '';
|
||||
|
||||
Reference in New Issue
Block a user