ioquatix / script-runner

This package will run various script files inside of Atom. It currently supports JavaScript, CoffeeScript, Ruby, and Python. You can add more.
http://atom.io/packages/script-runner
Other
62 stars 23 forks source link

Doesn't recognize active virtualenv #38

Open mbrochh opened 9 years ago

mbrochh commented 9 years ago

I tried adding the shebang #!/usr/bin/env python to a simple Python script. The script imports something that is only available in a virtualenv. I had that virtualenv active then I started atom but when I run the script, it fails and says that it can't find that imported module.

I could of course point the shebang exactly at the exeutable in my virtualenv but that doesn't sound like the correct way to do things since every developer would have different paths.

Any idea how I can get #!/usr/bin/env python playing nicely with script-runner?

ioquatix commented 9 years ago

It will use the default virtualenv

ioquatix commented 8 years ago

@mbrochh did you make any progress with this? I'd like to know if you found a way to do what you want. Ideally we would support your use-case, but it might require that we provide the ability to specify some environment variables or you modify the shebang line.