modify pymol startup script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pymol (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If you want alter CHEMPY_DATA or PYMOL_DATA variable you have to copy and modify startup script which is not very comfortable for non-expirienced users. But this operation is needed if you want use custom *.pkl fragments and you a user without write permissions on /usr/share/chempy
At the moment startup script looks like this:
#!/bin/sh
# debian wrapper script for pymol
export PYMOL_PATH=
export PYMOL_DATA=
export CHEMPY_
python2.7 -m pymol.__init__ ${1+"$@"}
Better approach would be:
if [ ! -n "$PYMOL_DATA" ]
then export PYMOL_DATA=
fi
if [ ! -n "$CHEMPY_DATA" ]
then export CHEMPY_
fi
so user will have opportunity to start pymol like this:
$ CHEMPY_
Sounds reasonable.
Another more involved option would be to extend pymol to also check below ~/.pymol/, like ~/.pymol/chempy or whatever.