os.remove(salome_file)
except:
pass
- env_modules = [m.encode('utf8') for m in _config.get('env_modules', [])]
+ env_modules = _config.get('env_modules', [])
with open(salome_file, 'w') as fd:
fd.write(salome_script.replace('MODULES = []', 'MODULES = {}'.format(env_modules)))
os.chmod(salome_file, 0o755)
def MYTRACE ():
if verbose():
- str = "- Trace "
- GLogger.putMessage(str + " : ")
-
+ GLogger.putMessage("- Trace : ")
+
def REPERE():
if verbose():
def BEGIN_OF(msg):
if verbose():
REPERE(); MYTRACE();
- GLogger.putMessage("Begin of : "+ str(msg) + "\n")
+ GLogger.putMessage("Begin of : %s\n" % msg)
REPERE();
def END_OF(msg):
if verbose():
REPERE(); MYTRACE();
- GLogger.putMessage("Normale end of : "+ str(msg) + "\n")
+ GLogger.putMessage("Normal end of : %s\n" % msg)
REPERE();
def MESSAGE(msg):
if verbose():
MYTRACE()
- GLogger.putMessage(str(msg) + "\n")
+ GLogger.putMessage("%s\n" % msg)
def SCRUTE(var_name, var_value):
MYTRACE();
- GLogger.putMessage(var_name + " = " + str(var_value) + "\n")
-
-
+ GLogger.putMessage("%s = %s\n" % (var_name, var_value))