Salome HOME
0023629: [CEA] KERNEL_SALOME_CONCURRENT_TestConcurrentSession: does not return
[modules/kernel.git] / bin / appliskel / salome_starter.py
index 795803d408da1eae96165d06d999acdb554565a8..2dc218a9479beb01873d88303afa7aa1303412c7 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 
 # Copyright (C) 2014-2017  CEA/DEN, EDF R&D, OPEN CASCADE
 #
@@ -53,7 +53,7 @@ def initialize(launcherPath, launcherFile):
   appliPath = __detectAppliPath(launcherPath, launcherFile)
 
   if appliPath is None:
-    print "ERROR: Unable to find application folder"
+    print("ERROR: Unable to find application folder")
     sys.exit(1)
 
   appliPath = os.path.relpath(appliPath, homePath)
@@ -68,7 +68,7 @@ def initialize(launcherPath, launcherFile):
   try:
     from salomeContextUtils import setOmniOrbUserPath
     setOmniOrbUserPath()
-  except Exception, e:
-    print e
+  except Exception as e:
+    print(e)
     sys.exit(1)
 # End of preliminary work