Hi guys,
If I'm in say /home/a
and I want to import a module name "file.h" in /home/b/c/d
I tried :
What did I miss?
Oh, I should add that this file is not a python file, is it possible to do this ?
If I'm in say /home/a
and I want to import a module name "file.h" in /home/b/c/d
I tried :
import sys sys.path.insert(0, '/home/b/c/d')but when I did
import file.hIt still says no module named file.h,even though file.h is indeed in the /home/b/c/d directory ?
What did I miss?
Oh, I should add that this file is not a python file, is it possible to do this ?