From: caremoli Date: Thu, 23 Sep 2010 08:58:20 +0000 (+0000) Subject: CCAR: give a way to change PYTHONPATH in context.py X-Git-Tag: V5_1_5a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=46e67967ffebf089632882ecd62b2662c7f2b7c7;p=tools%2Fyacsgen.git CCAR: give a way to change PYTHONPATH in context.py --- diff --git a/Examples/context.py b/Examples/context.py index cb63bc6..37abe84 100644 --- a/Examples/context.py +++ b/Examples/context.py @@ -17,7 +17,8 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -import os +import os,sys +#sys.path.insert(0,"../..") KERNEL_ROOT_DIR=os.getenv("KERNEL_ROOT_DIR","/local/cchris/Salome/Install/KERNEL_V5") GUI_ROOT_DIR=os.getenv("GUI_ROOT_DIR","/local/cchris/Salome/Install/GUI_V5") diff --git a/Examples/pyth1/components.py b/Examples/pyth1/components.py index b7e2ee8..3677297 100644 --- a/Examples/pyth1/components.py +++ b/Examples/pyth1/components.py @@ -18,10 +18,10 @@ # import os -from module_generator import Generator,Module,Service,PYComponent #import context from .. execfile("../context.py") +from module_generator import Generator,Module,Service,PYComponent cwd=os.getcwd()