Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Add pythonpath programmatically? #64

Open
bmcrae opened this issue Mar 4, 2014 · 1 comment
Open

Add pythonpath programmatically? #64

bmcrae opened this issue Mar 4, 2014 · 1 comment

Comments

@bmcrae
Copy link
Contributor

bmcrae commented Mar 4, 2014

So, one of the hassles of installing on multiple machines (especially Mac, for me, since I'm not very familiar with the file system and hidden files) is setting the pythonpath so that it includes the circuitscape directory. Wouldn't it be possible to just do this in csgui.py at runtime?

@jeffreyhanson
Copy link

I stumbled across this issue when looking for an answer to this very question. I worked out a solution in the end, and I thought I'd post it here in case others are interested.

Since I'm calling circuitscape from R, I worked out that I can set PYTHONPATH using Sys.setenv in R, and then call circuitscape using system and it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants