]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
CCAR: give a way to change PYTHONPATH in context.py
authorcaremoli <caremoli>
Thu, 23 Sep 2010 08:58:20 +0000 (08:58 +0000)
committercaremoli <caremoli>
Thu, 23 Sep 2010 08:58:20 +0000 (08:58 +0000)
Examples/context.py
Examples/pyth1/components.py

index cb63bc68b138296ee794a74470182476fcdb2904..37abe847ee0d30061ae93478127f7dbf7cc6485d 100644 (file)
@@ -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")
index b7e2ee83da6d39e0769f95c74f36272e22e31bc1..36772975d06e48cb711e964d06c8cc9f75f05632 100644 (file)
 #
 
 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()