[Tutor] Help - importing modules

Steven D'Aprano steve at pearwood.info
Sat Sep 18 17:46:37 CEST 2010


On Sun, 19 Sep 2010 12:16:47 am Fernando Karpinski wrote:
>    Hi, everyone. I need help when importing a file I created, with
> the .py extension. I am trying to access its directory in DOS, and
> after I do it, I type "import filename", but it is not working.

Define "not working".

My crystal ball tells me that you're trying to run import filename at 
the DOS prompt, rather than in the Python interpreter. Is my crystal 
ball accurate?



-- 
Steven D'Aprano


More information about the Tutor mailing list