X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2Fappliskel%2Fsalome_starter.py;h=737b4c15d1a837bdeca62fa4d9da9634499ee4a4;hb=4f4bed19cea84286b1f671c71dced42d6ceb521b;hp=b381b89c9c990fa4fe017da129d6d431bfd81c3f;hpb=e429ce02076e083051c6520e0d7113022bd67b18;p=modules%2Fkernel.git diff --git a/bin/appliskel/salome_starter.py b/bin/appliskel/salome_starter.py index b381b89c9..737b4c15d 100644 --- a/bin/appliskel/salome_starter.py +++ b/bin/appliskel/salome_starter.py @@ -1,6 +1,6 @@ #! /usr/bin/env python -# Copyright (C) 2014-2016 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2014-2017 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -53,8 +53,8 @@ def initialize(launcherPath, launcherFile): appliPath = __detectAppliPath(launcherPath, launcherFile) if appliPath is None: - print "ERROR: Unable to find application folder" - sys.exit(0) + print("ERROR: Unable to find application folder") + sys.exit(1) appliPath = os.path.relpath(appliPath, homePath) absoluteAppliPath = os.path.join(homePath, appliPath) @@ -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