I want to edit my code in notepad++ and be able to run it from there. However as my script imports library from it's own folder it's proving difficult.
This is what the directory for the script look like \test\test1.py\selenuim\webdriver\firefox etc.
When run by double clicking the file in the explorer it works. When run from notepad using all the methods I could find, it says
Traceback (most recent call last):
File "D:\test\test1.py", line 1, in <module>
import selenium.webdriver;
ModuleNotFoundError: No module named 'selenium'
I've already scoured this link: How to Execute a Python File in Notepad ++?
And there is no way to do the way I have in mind. Some include cd
in them, however this did not help me.