Skip to content

Commit

Permalink
Load xce egg when launching coot scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Jun 18, 2024
1 parent faffd5f commit 96c95cb
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
4 changes: 4 additions & 0 deletions coot/XChemCoot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import glob
import os
import pickle
Expand Down Expand Up @@ -1671,4 +1672,7 @@ def reset_occupancy(self):


if __name__ == "__main__":
sys.path.insert(
0, os.path.join(os.environ["XChemExplorer_DIR"], "dist", "xce-1.5.0-py2.7.egg")
)
GUI().StartGUI()
4 changes: 4 additions & 0 deletions coot/XChemCootBuster.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import getpass
import glob
import os
Expand Down Expand Up @@ -1686,4 +1687,7 @@ def show_ground_state_mean_map(self, widget):


if __name__ == "__main__":
sys.path.insert(
0, os.path.join(os.environ["XChemExplorer_DIR"], "dist", "xce-1.5.0-py2.7.egg")
)
GUI().StartGUI()
4 changes: 4 additions & 0 deletions coot/XChemCootNew.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import getpass
import glob
import os
Expand Down Expand Up @@ -1876,4 +1877,7 @@ def show_ground_state_mean_map(self, widget):


if __name__ == "__main__":
sys.path.insert(
0, os.path.join(os.environ["XChemExplorer_DIR"], "dist", "xce-1.5.0-py2.7.egg")
)
GUI().StartGUI()
5 changes: 4 additions & 1 deletion coot/XChemCootOld.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import os
import pickle

Expand All @@ -18,7 +19,6 @@


class GUI(object):

"""
main class which opens the actual GUI
"""
Expand Down Expand Up @@ -1317,4 +1317,7 @@ def show_molprobity_to_do(self, widget):


if __name__ == "__main__":
sys.path.insert(
0, os.path.join(os.environ["XChemExplorer_DIR"], "dist", "xce-1.5.0-py2.7.egg")
)
GUI().StartGUI()
4 changes: 4 additions & 0 deletions coot/XChemCootReference.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import glob
import os
import pickle
Expand Down Expand Up @@ -703,4 +704,7 @@ def update_plot(self, refinement_cycle, Rfree, Rcryst):


if __name__ == "__main__":
sys.path.insert(
0, os.path.join(os.environ["XChemExplorer_DIR"], "dist", "xce-1.5.0-py2.7.egg")
)
GUI().StartGUI()
4 changes: 4 additions & 0 deletions coot/XChemCootTwin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import glob
import os
import pickle
Expand Down Expand Up @@ -1691,4 +1692,7 @@ def show_ground_state_mean_map(self, widget):


if __name__ == "__main__":
sys.path.insert(
0, os.path.join(os.environ["XChemExplorer_DIR"], "dist", "xce-1.5.0-py2.7.egg")
)
GUI().StartGUI()

0 comments on commit 96c95cb

Please sign in to comment.