On 1/20/11 2:10 PM, Mier, Alejandro wrote:
The problem is that, even though subprocess.call("python setup.py install") picks up the system python (sys.executable has the expected value), it still loads the modules from the site-packages.zip in the .app bundle.
I suspect that you are getting environment variables set by py2app, rather that the user's raw environment.
Maybe it shouldn't be a subprocess -- what happens if you do a simple: os.system("python setup.py install") you also may need to make sure the working dir is correct: os.system("cd the/full/path/to/setup; python setup.py install) -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG