-# if os.path.splitext(fn)[1] not in (".pyc",".pyo"): #Compiled python are excluded
- symlink(os.path.join(module_lib_py_dir, fn), os.path.join(lib_py_dir, fn))
- for fn in os.listdir(module_lib_py_shared_dir):
-# if os.path.splitext(fn)[1] not in (".pyc",".pyo"): #Compiled python are excluded
- symlink(os.path.join(module_lib_py_shared_dir, fn), os.path.join(lib_py_shared_dir, fn))
+ # if os.path.splitext(fn)[1] not in (".pyc",".pyo"): #Compiled python are excluded
+ if os.path.split(fn)[1] != "shared_modules":
+ symlink(os.path.join(module_lib_py_dir, fn), os.path.join(lib_py_dir, fn))
+ pass
+ pass
+ if os.path.exists(module_lib_py_shared_dir):
+ for fn in os.listdir(module_lib_py_shared_dir):
+ # if os.path.splitext(fn)[1] not in (".pyc",".pyo"): #Compiled python are excluded
+ symlink(os.path.join(module_lib_py_shared_dir, fn), os.path.join(lib_py_shared_dir, fn))
+ pass
+ pass
+ else:
+ print module_lib_py_shared_dir, " doesn't exist"
+ pass
+