[Tutor] Help - importing modules
David Hutto
smokefloat at gmail.com
Sat Sep 18 18:14:08 CEST 2010
On Sat, Sep 18, 2010 at 11:46 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> 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?
My crystal ball says, 'Hey buddy, pal', but after that it says, you
have to first assign python in windows, as an environmental variable
in windows, with C:\pythonversion. so you can type python in the cmd
prompt on windows, and have python interpreter come up.
>
>
>
> --
> Steven D'Aprano
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list