From: eap Date: Tue, 18 Jun 2013 14:24:08 +0000 (+0000) Subject: enable running without "APPLI" env var X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=68dd05a410ac82501f87b641ab6ab033addd9955;p=modules%2Fyacs.git enable running without "APPLI" env var --- diff --git a/bin/runSalome.py b/bin/runSalome.py index 60e4de11b..44a9693da 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -926,7 +926,9 @@ if __name__ == "__main__": homePath = os.path.realpath(os.path.expanduser('~')) #defaultOmniorbUserPath = os.path.join(homePath, ".salomeConfig/USERS") appli = os.getenv("APPLI") - defaultOmniorbUserPath = os.path.join(homePath, appli, "USERS") + defaultOmniorbUserPath = homePath + if appli: + defaultOmniorbUserPath = os.path.join( homePath, appli, "USERS" ) os.environ["OMNIORB_USER_PATH"] = defaultOmniorbUserPath ############