I have written a module and stored it in a location say x and then I am running a program from a different location y. Now, I want to import that module in x. How can I do that?
I have tried doing the following before importing but it didn't work for scripts -
os.chdir(x)
I want to utilise only the default modules available in Python 3.8.1.