From: prascle Date: Mon, 31 Jan 2005 09:55:28 +0000 (+0000) Subject: PR: bug 7930: to work with $KERNEL_ROOT_DIR/bin/salome/runSalome --interp=1 X-Git-Tag: V2_2_0~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0060744285b6cbd9aa940412de13a99c5fc9e451;p=modules%2Fkernel.git PR: bug 7930: to work with $KERNEL_ROOT_DIR/bin/salome/runSalome --interp=1 --- diff --git a/bin/runSalome.py b/bin/runSalome.py index 56d563c60..e423d97ba 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -257,8 +257,8 @@ class InterpServer(Server): def __init__(self,args): self.args=args env_ld_library_path=['env', 'LD_LIBRARY_PATH=' + os.getenv("LD_LIBRARY_PATH")] - #self.CMD=['xterm', '-iconic', '-sb', '-sl', '500', '-hold','-e']+ env_ld_library_path + ['python'] - self.CMD=['xterm', '-e', 'python'] + self.CMD=['xterm', '-e']+ env_ld_library_path + ['python'] + #self.CMD=['xterm', '-e', 'python'] def run(self): global process_id @@ -588,8 +588,19 @@ def startSalome(args, modules_list, modules_root_dir): # # additionnal external python interpreters # - - nbaddi = int(args['interp']) + nbaddi=0 + + try: + if 'interp' in args: + if args['interp']: + nbaddi = int(args['interp'][0]) + except: + import traceback + traceback.print_exc() + print "-------------------------------------------------------------" + print "-- to get an external python interpreter:runSalome --interp=1" + print "-------------------------------------------------------------" + print "additional external python interpreters: ", nbaddi if nbaddi: for i in range(nbaddi):