]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
enable running without "APPLI" env var
authoreap <eap@opencascade.com>
Tue, 18 Jun 2013 14:24:08 +0000 (14:24 +0000)
committereap <eap@opencascade.com>
Tue, 18 Jun 2013 14:24:08 +0000 (14:24 +0000)
bin/runSalome.py

index 60e4de11b043b800b64b9c27f3128b03e285dc9c..44a9693da4f9c8278428d69387ce091c82c486f3 100755 (executable)
@@ -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
     ############