windows - Where do I save a .py file so that I can import it from python interpreter ( from powershell ) -
i have python file wrote myself, has several functions in it. trying import python interpreter within powershell (windows 7). learning exercise. isn't importing, it's throwing error module not exist. question need save .py file to? there specific place python looks modules imported? i'm using python2.7.10.
this isn't module standard library or third party i've downloaded. python file importing can call functions it...
it's answered now, calling python withion wrong directory. have call python same directory file saved in. thank guys.
save module.py
file /documents
. navigate /documents
in powershell , start python command line typing python
, pressing enter. can import file command import module
Comments
Post a Comment