-1

In my current directory called processing i have many folders, one of them is called segmentation, there is many files in segmentation one of them is test.py. In my terminal i am in processing and i want to run test.py from there, i tried python -m segmentation.test but this command didn't work.

1

1 Answer 1

2

If you are in the processing directory and want to run the test.py script inside the segmentation folder, simply do this:

python segmentation/test.py
Sign up to request clarification or add additional context in comments.

3 Comments

got this error python: can't open file 'segmentation/test.py': [Errno 2] No such file or directory
Strange. Are you sure you are in the processing directory? Can you post the output of ls? And ls segmentation?
yes i'll try to restart it tends to get buggy at times.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.