From 46e67967ffebf089632882ecd62b2662c7f2b7c7 Mon Sep 17 00:00:00 2001 From: caremoli Date: Thu, 23 Sep 2010 08:58:20 +0000 Subject: [PATCH] CCAR: give a way to change PYTHONPATH in context.py --- Examples/context.py | 3 ++- Examples/pyth1/components.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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() -- 2.39.2