Closed ycsin closed 1 year ago
Bear in mind that the extension itself has no knowledge of Python. It is written in TypeScript/Javascript and simply runs a Python command (using the project folder as the working directory). So any Python import errors are normally caused the same way they always are, e.g. things like having no __init__.py
file in a package/module folder or vscode using the incorrect python interpreter or virtual environment etc.
If you have errors coming from Python, the first steps to diagnosing the problem would be:
Then get the commands working without the extension. (Note that the python path in the command is set by your vscode python interpreter selection, not the extension.)
@jimasp Thanks for the tips!
Hi there, my directory structure is similar to the example-projects/project A
But my
environment.py
needs to import a python script (i.e.test_script1.py
) in the same folder asenvironment.py
:It errors when I run any of the test from the plugin
I also have a folder (i.e.
foobar
) inside thefeatures
folder that contains multiple python scripts that will be used by thesteps_*.py
inside thestep
folder, which need to import them like so:Is such directory structure supported by this plugin? Thanks.