I have a directory called my.directory and a file in it called file.py, I need to write a python script that uses file.py and I cannot change the names of the files or directories, moreover the script cannot be in the same directory as file.py. I have tried this:
import my.directory.file
and this
import my\.directory.file
neither of which work, I would like to know if this is possible and if so how.
Thanks
edit:
I phrased the above question in a general way because I didn't think the particular details of the problem were important however here are the details anyway. I'm trying to import from python3.6/site-packages