Skip to content

Commit fc2364f

Browse files
committed
Fix PYTHONPATH handling in test script for promod3
1 parent b75b322 commit fc2364f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Formula/promod3.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,15 @@ def install
4848
ENV.prepend_path "PYTHONPATH", lib/"python3.13/site-packages"
4949

5050
(testpath/"gen_pdb.py").write <<~EOS
51+
import sys
52+
5153
from ost import io
5254
from promod3 import loop
5355
56+
site_packages = os.path.join(os.path.dirname(__file__), "..", "lib", "python3.13", "site-packages")
57+
site_packages = os.path.abspath(site_packages)
58+
sys.path.insert(0, site_packages)
59+
5460
sequence = "HELLYEAH"
5561
bb_list = loop.BackboneList(sequence)
5662
io.SavePDB(bb_list.ToEntity(), "test.pdb")

0 commit comments

Comments
 (0)