i’m using python 2.7. I have written a script, i need to import a function from some other file which is there in different folder.
my script is in the path
C:\python\xyz\xls.py
Path of File having function that i need to call is
C:\python\abc.py
i tried like this
from python.abc import *
but it is not working. Is there any other way to call the function or i need to move the files into same directory? Please help
Thank you
You can dynamically load a module from a file:
The imp module docs will give you more details.