Salome HOME
add get_value method to Environ classes, to conform with the API of FileEnviron
[tools/sat.git] / commands / config.py
index 15f7ce6f9fee847af126303184ddc0f1f9906382..b66f8e42c4c2e64b838da5c1e104f00155cf9036 100644 (file)
@@ -74,7 +74,7 @@ def osJoin(*args):
   res = os.path.realpath(os.path.join(*args))
   if verbose:
     if True: # ".pyconf" in res:
-      logger.info("osJoin %-80s in %s" % (res, CALN.caller_name()))
+      logger.info("osJoin %-80s in %s" % (res, CALN.caller_name(1)))
   return res
 
 class ConfigOpener:
@@ -359,6 +359,7 @@ class ConfigManager:
         cfg.PATHS.JOBPATH.append(cfg.VARS.personal_jobs_dir, "")
         cfg.PATHS["MACHINEPATH"] = src.pyconf.Sequence(cfg.PATHS)
         cfg.PATHS.MACHINEPATH.append(cfg.VARS.personal_machines_dir, "")
+        cfg.PATHS["LICENCEPATH"] = src.pyconf.Sequence(cfg.PATHS)
 
         # initialise the path with local directory
         cfg.PATHS["ARCHIVEPATH"].append(cfg.LOCAL.archive_dir, "")
@@ -371,7 +372,8 @@ class ConfigManager:
                          "ARCHIVEPATH", #comment this for default archive      #8646
                          "ARCHIVEFTP",
                          "JOBPATH",
-                         "MACHINEPATH"]:
+                         "MACHINEPATH",
+                         "LICENCEPATH"]:
                 if PATH not in cfg.PROJECTS.projects[project]:
                     continue
                 cfg.PATHS[PATH].append(cfg.PROJECTS.projects[project][PATH], "")
@@ -720,6 +722,7 @@ def show_product_info(config, name, logger):
                                     check_path(pinfo.environ.env_script), 
                                     2)
 
+    # display run-time environment
     zz = src.environment.SalomeEnviron(config,
                                        src.fileEnviron.ScreenEnviron(logger), 
                                        False)