Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Minor error on warning msg
[modules/kernel.git]
/
bin
/
appliskel
/
salome_starter.py
diff --git
a/bin/appliskel/salome_starter.py
b/bin/appliskel/salome_starter.py
index b381b89c9c990fa4fe017da129d6d431bfd81c3f..737b4c15d1a837bdeca62fa4d9da9634499ee4a4 100644
(file)
--- a/
bin/appliskel/salome_starter.py
+++ b/
bin/appliskel/salome_starter.py
@@
-1,6
+1,6
@@
#! /usr/bin/env python
#! /usr/bin/env python
-# Copyright (C) 2014-201
6
CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-201
7
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
#
# 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:
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)
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()
try:
from salomeContextUtils import setOmniOrbUserPath
setOmniOrbUserPath()
- except Exception
,
e:
- print
e
+ except Exception
as
e:
+ print
(e)
sys.exit(1)
# End of preliminary work
sys.exit(1)
# End of preliminary work