diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-02-10 11:22:35 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-02-10 11:22:35 +0000 |
commit | 4f27d63f20af7ad94647ccd7971867396d93d777 (patch) | |
tree | 5ca96522fa6fd9db909336d7bc08c4b45139cf36 /sci-chemistry/pymol/files | |
parent | Version bump wrt #300556, thanks to Jeroen Roovers for reporting. (diff) | |
download | gentoo-2-4f27d63f20af7ad94647ccd7971867396d93d777.tar.gz gentoo-2-4f27d63f20af7ad94647ccd7971867396d93d777.tar.bz2 gentoo-2-4f27d63f20af7ad94647ccd7971867396d93d777.zip |
Fixing PYMOL_DATA again per 304259
(Portage version: 2.2_rc62/cvs/Linux i686)
Diffstat (limited to 'sci-chemistry/pymol/files')
-rw-r--r-- | sci-chemistry/pymol/files/1.2.2-data-path.patch | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/sci-chemistry/pymol/files/1.2.2-data-path.patch b/sci-chemistry/pymol/files/1.2.2-data-path.patch new file mode 100644 index 000000000000..cf1bf59af0c6 --- /dev/null +++ b/sci-chemistry/pymol/files/1.2.2-data-path.patch @@ -0,0 +1,75 @@ +Index: modules/pymol/importing.py +=================================================================== +--- modules/pymol/importing.py (revision 3889) ++++ modules/pymol/importing.py (working copy) +@@ -191,7 +191,7 @@ + ''' + r = DEFAULT_ERROR + +- tables = { 'cmyk' : "$PYMOL_PATH/data/pymol/cmyk.png", ++ tables = { 'cmyk' : "$PYMOL_DATA/pymol/cmyk.png", + 'pymol' : 'pymol', + 'rgb' : 'rgb', + 'greyscale': 'greyscale' } +Index: modules/pymol/wizard/mutagenesis.py +=================================================================== +--- modules/pymol/wizard/mutagenesis.py (revision 3889) ++++ modules/pymol/wizard/mutagenesis.py (working copy) +@@ -53,8 +53,8 @@ + + self.dep = default_dep + +- self.ind_library = io.pkl.fromFile(os.environ['PYMOL_PATH']+ +- "/data/chempy/sidechains/sc_bb_ind.pkl") ++ self.ind_library = io.pkl.fromFile(os.environ['PYMOL_DATA']+ ++ "/chempy/sidechains/sc_bb_ind.pkl") + self.load_library() + self.status = 0 # 0 no selection, 1 mutagenizing + self.bump_check = 1 +@@ -218,8 +218,8 @@ + def load_library(self): + if self.dep == 'dep': + if not hasattr(self,'dep_library'): +- self.dep_library = io.pkl.fromFile(os.environ['PYMOL_PATH']+ +- "/data/chempy/sidechains/sc_bb_dep.pkl") ++ self.dep_library = io.pkl.fromFile(os.environ['PYMOL_DATA']+ ++ "/chempy/sidechains/sc_bb_dep.pkl") + + def set_mode(self,mode): + cmd=self.cmd +Index: modules/pymol/commanding.py +=================================================================== +--- modules/pymol/commanding.py (revision 3889) ++++ modules/pymol/commanding.py (working copy) +@@ -219,11 +219,11 @@ + _self.unlock(0,_self) + r = DEFAULT_SUCCESS + if show_splash==1: # generic / open-source +- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/splash.png") ++ png_path = _self.exp_path("$PYMOL_DATA/pymol/splash.png") + elif show_splash==2: # evaluation builds +- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/epymol.png") ++ png_path = _self.exp_path("$PYMOL_DATA/pymol/epymol.png") + else: # incentive builds +- png_path = _self.exp_path("$PYMOL_PATH/data/pymol/ipymol.png") ++ png_path = _self.exp_path("$PYMOL_DATA/pymol/ipymol.png") + if os.path.exists(png_path): + _self.do("_ cmd.load_png('%s',0,quiet=1)"%png_path) + else: +Index: modules/chempy/tinker/__init__.py +=================================================================== +--- modules/chempy/tinker/__init__.py (revision 3889) ++++ modules/chempy/tinker/__init__.py (working copy) +@@ -145,9 +145,9 @@ + bin_path = '' + params_path = '' + +-if os.environ.has_key('PYMOL_PATH'): +- pymol_path = os.environ['PYMOL_PATH'] +- test_path = pymol_path + '/data/chempy/tinker/' ++if os.environ.has_key('PYMOL_DATA'): ++ pymol_path = os.environ['PYMOL_DATA'] ++ test_path = pymol_path + '/chempy/tinker/' + if os.path.exists(test_path): + params_path = test_path + |