Skip to content

Commit

Permalink
cootbx: make file finding more portable
Browse files Browse the repository at this point in the history
- Works for both development builds and installer builds

[skip ci]
  • Loading branch information
bkpoon committed Sep 24, 2024
1 parent 98fe1eb commit 6a6e55e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cootbx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ def create_refinement_view_script(
print("import coot", file=f)
print("import os", file=f)
write_disable_nomenclature_errors(f)
load_script = libtbx.env.find_in_repositories(
relative_path="cctbx_project/cootbx/view_refinement.py",
load_script = libtbx.env.under_dist("cootbx", "view_refinement.py",
test=os.path.isfile)
assert (load_script is not None)
concatenate_python_script(out=f, file_name=load_script)
zoom_ligand_script = libtbx.env.find_in_repositories(
relative_path="cctbx_project/cootbx/simple_zoom_list.py",
zoom_ligand_script = libtbx.env.under_dist("cootbx", "simple_zoom_list.py",
test=os.path.isfile)
concatenate_python_script(out=f, file_name=zoom_ligand_script)
if (work_dir is not None):
Expand Down

0 comments on commit 6a6e55e

Please sign in to comment.