]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
win32 porting for libraries and scripts
authorptv <ptv@opencascade.com>
Thu, 11 May 2006 12:16:58 +0000 (12:16 +0000)
committerptv <ptv@opencascade.com>
Thu, 11 May 2006 12:16:58 +0000 (12:16 +0000)
bin/setenv.py

index 2ddb9d8a9c44e21dd3dc6a124c23514321991eca..f4956b2cd17a9ef42be079ec242e4cb5f6348162 100755 (executable)
@@ -135,12 +135,13 @@ def set_env(args, modules_list, modules_root_dir):
                 pass
             add_path(os.path.join(module_root_dir,"bin",salome_subdir),
                      "PYTHONPATH")
+            # add lib before site-packages to load script instead of dll if any (win32 platform)
+            add_path(os.path.join(module_root_dir,"lib",salome_subdir),
+                     "PYTHONPATH")
             add_path(os.path.join(module_root_dir,"lib",
                                   python_version,"site-packages",
                                   salome_subdir),
                      "PYTHONPATH")
-            add_path(os.path.join(module_root_dir,"lib",salome_subdir),
-                     "PYTHONPATH")
             add_path(os.path.join(module_root_dir,"lib",
                                   python_version,"site-packages",
                                   salome_subdir,