Commit 98f33ed1 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Add $MYSITEROOT/bin and $MYSITEROOT/bin/$LCG_hostos to $PATH

parent addd4e55
......@@ -57,7 +57,9 @@ def main():
opts.platform = LbEnv.defaultPlatform()
control.set('CMTCONFIG', opts.platform)
control.set('LCG_hostos', LbPlatformUtils.host_os())
host_os = LbPlatformUtils.host_os()
control.set('LCG_hostos', host_os)
if opts.siteroot:
mysiteroot = opts.siteroot
......@@ -73,6 +75,9 @@ def main():
control.set('MYSITEROOT', mysiteroot)
control.prepend('PATH', join(mysiteroot, 'bin', host_os))
control.prepend('PATH', join(mysiteroot, 'bin'))
if 'HOME' in os.environ and os.path.exists(join(os.environ['HOME'],
control.set('User_release_area', join(os.environ['HOME'], 'cmtuser'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment