nova-python / Python.novaextension

Python for Nova
MIT License
13 stars 1 forks source link

Path to virtual environment script #2

Closed Arnou1 closed 1 year ago

Arnou1 commented 1 year ago

Sorry for the noob question, but may I ask what path should I fill in the Script section for the Virtual Environment task? I tried absolute/relative paths of my Python/Shell scripts, but the task report keeps telling me that the file does not exist.

dcwatson commented 1 year ago

The path should be relative to the workspace directory. However, if you're trying to run a script outside of your workspace, I realize it may not be constructing the path correctly -- I'll fix that. If you are trying to run a script inside your workspace, I guess I'd check that you've set a Python Interpreter in the Python extension settings for your workspace?

dcwatson commented 1 year ago

You'll also want to make sure the script is executable. The task tries to run it directly, not running it as an argument to python or sh or anything.

Arnou1 commented 1 year ago

You'll also want to make sure the script is executable. The task tries to run it directly, not running it as an argument to python or sh or anything.

Thanks a lot! I can now run my script by making it executable.