Salome HOME
remove notification server
[modules/yacs.git] / bin / appliskel / runSalomeScript
index be512f8ab18dd9e88ac8bdc0661d14899ab936c5..b50ed65179f6fd79c805c8535f2d5e635c5a0f01 100755 (executable)
@@ -137,7 +137,8 @@ def copy_files(user,machine,script,infiles,outfiles,directory):
   """modify script, copy files to remote computer and return lists of copied files"""
 
   namescript=os.path.basename(script)
-  logname=os.getenv("LOGNAME",user)
+  import getpass
+  logname = getpass.getuser()
   tmp_script="/tmp/%s_%s_%s" % (logname,os.getpid(),namescript)
   fscript=open(script)
   script_text=fscript.read()