1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Author: Michael Banck <mbanck@debian.org>
Description: Fix importing of pymol by setting PYMOL_PATH explicitly
Bug-Debian: http://bugs.debian.org/556878
Forwarded: not-needed
--- a/modules/pymol/__init__.py
+++ b/modules/pymol/__init__.py
@@ -78,6 +78,7 @@ IS_LINUX = sys.platform.startswith('linu
import _thread as thread
+from imp import find_module
import copy
import threading
import re
@@ -190,6 +191,8 @@ def guess_pymol_path():
# venv --system-site-packages (experimental)
os.path.join(sys.base_prefix, 'share', 'pymol'),
+
+ find_module('pymol')[1]
]
for pymol_path in pymol_path_candidates:
|