Hi.

You probably want to make sure your file is somewhere in your system path.
write in pymol

import sys
print sys.path

Then locate a directory where you can store your file.
You can also make some kung-fu, and add to the PYTHONPATH:

You could have a start script something like this

#!/bin/bash
export FREEMOL=/xxx/software/pymolsvn/svnfreemol/freemol
export PYMOL_GIT_MOD=/xxx/software/pymolsvn/Pymol-script-repo/modules
export
PYTHONPATH=$PYTHONPATH:/xxx/software/x64/lib64/python2.6/site-packages/PIL
export
PYTHONPATH=$PYTHONPATH:/xxx/software/x64/lib64/python2.6/site-packages/lib-tk
export
PYTHONPATH=$PYTHONPATH:/xxx/software/x64/lib64/python2.6/site-packages/lib-dynload
export
PYTHONPATH=/xxx/software/pymolsvn/Pymol-script-repo/modules:$PYTHONPATH
export PYTHONPATH=/xxx/software/pymolsvn/Pymol-script-repo:$PYTHONPATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/xxx/software/x64/lib/pymollib
export LIBGL_ALWAYS_INDIRECT=no

/usr/bin/python /xxx/software/pymolsvn/modules/pymol/__init__.py "$@"

Troels Emtekær Linnet
Ved kløvermarken 9, 1.th
2300 København S
Mobil: +45 60210234



2012/7/24 Matthew Baumgartner <mp...@pitt.edu>

> Hi,
> I wrote a short script that I am going to use in pymol.  I need to parse
> a json file and then display the contents in some manner. It works just
> fine in Ubuntu 12.04, but when I try it on OSX, it doesn't work. The
> problem that I am having is that when I try `import simplejson` or
> `import json` it throws an ImportError.
>
> I assume that this is related to the PYTHON_PATH variable, but thus far
> my google-fu has come up short.
> I've tried it in both pymol version 1.3 and 1.5.0.3.
>
> Any help would be appreciated.
>
> Thanks,
> Matt Baumgartner
>
>
> Technical Details:
> pymol 1.5.0.3 and 1.3
> OSX 10.6.8
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to