Salome HOME
Python 3 porting
authorGilles DAVID <gilles-g.david@edf.fr>
Wed, 24 May 2017 08:06:13 +0000 (10:06 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Wed, 24 May 2017 08:06:13 +0000 (10:06 +0200)
bin/geom_setenv.py
doc/salome/examples/testme.py

index 7cc4716207a6ed7dafe9f6441470ba996d7bf375..45a90d7944ec922489bf2d2b41b516703fa492d4 100644 (file)
@@ -1,5 +1,4 @@
-#! /usr/bin/env python
-#  -*- coding: iso-8859-1 -*-
+#! /usr/bin/env python3
 # Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
@@ -58,7 +57,7 @@ def set_env( args ):
     plugin_list.append("AdvancedGEOM")
 
     # find additional plugins
-    for env_var in list(os.environ.keys()):
+    for env_var in os.environ:
         value = os.environ[env_var]
         if env_var[-9:] == "_ROOT_DIR" and value:
             plugin_root = value
index 6e3903fbcad91e9703947e831d795184d3e28501..342c496fee0dd8328f68dfec651bd89fca9812b7 100755 (executable)
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
 # Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
@@ -17,7 +18,6 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-#!/usr/bin/env python
 
 import unittest, sys, os