]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Merge remote-tracking branch 'origin/master' into V9_dev
authorGilles DAVID <gilles-g.david@edf.fr>
Wed, 4 Oct 2017 07:32:18 +0000 (09:32 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Wed, 4 Oct 2017 07:32:18 +0000 (09:32 +0200)
Conflicts:
bin/appli_gen.py
bin/appliskel/salome
bin/salomeContext.py

1  2 
bin/appli_gen.py
bin/runSalome.py
bin/salomeContext.py

index e8b9f9fc24950d42d5f37cfc78f083b36e97331b,0dbab540b9ae0f182816b42465a0eda63b38e301..f63b631424eaa0a28fcf5a32d341e75b88c41750
mode 100644,100755..100755
@@@ -194,8 -205,8 +203,8 @@@ def install(prefix, config_file, verbos
          pass
  
      if verbose:
-         for cle,val in list(_config.items()):
+         for cle,val in _config.items():
 -            print cle, val
 +            print(cle, val)
              pass
  
      # Remove CTestTestfile.cmake; this file will be filled by successive calls to link_module and link_extra_test
Simple merge
index 0d12eca5665f3d80ed6759413cdb148bf7847f17,92878a52aef382324d3d2aba804a9971c140a0e5..f80d714812d6e4dc2c19fb3dcfc622e9f989df60
@@@ -128,9 -128,7 +128,9 @@@ class SalomeContext
  
      absoluteAppliPath = os.getenv('ABSOLUTE_APPLI_PATH','')
      env_copy = os.environ.copy()
-     selfBytes= pickle.dumps(self,protocol=0)
-     argsBytes= pickle.dumps(args,protocol=0)
-     proc = subprocess.Popen(['python', os.path.join(absoluteAppliPath,"bin","salome","salomeContext.py"), selfBytes.decode(), argsBytes.decode()], shell=False, close_fds=True, env=env_copy)
 -    proc = subprocess.Popen(['python', os.path.join(absoluteAppliPath,"bin","salome","salomeContext.py"), pickle.dumps(self), pickle.dumps(args)], shell=False, close_fds=True, env=env_copy)
++    selfBytes= pickle.dumps(self, protocol=0)
++    argsBytes= pickle.dumps(args, protocol=0)
++    proc = subprocess.Popen(['python3', os.path.join(absoluteAppliPath,"bin","salome","salomeContext.py"), selfBytes.decode(), argsBytes.decode()], shell=False, close_fds=True, env=env_copy)
      out, err = proc.communicate()
      return out, err, proc.returncode
    #
      try:
        res = getattr(self, command)(options) # run appropriate method
        return res or 0
-     except SystemExit as returncode:
-       if returncode != 0:
-         self.getLogger().error("SystemExit %s in method %s.", returncode, command)
-       return returncode
+     except SystemExit as ex:
+       if ex.code != 0:
+         self.getLogger().error("SystemExit %s in method %s.", ex.code, command)
+       return ex.code
 -    except StandardError:
++    except SalomeContextException as e:
++      self.getLogger().error(e)
++      return 1
 +    except Exception:
        self.getLogger().error("Unexpected error:")
        import traceback
        traceback.print_exc()
        return 1
-     except SalomeContextException as e:
 -    except SalomeContextException, e:
--      self.getLogger().error(e)
--      return 1
    #
  
    def __setContextFromConfigFile(self, filename, reserved=None):