[Watford] Anyone with Portable Python experience? I am a newbie......
M Fernandes
myitpartneruk at gmail.com
Mon Feb 27 15:06:29 UTC 2012
Hello everyone,
I've got a problem which I have tried resolving myself, but, I haven't
been successful. I am learning Python but, I'm learning on a Windows
machine (XP). I cannot install Python onto this machine.
Consequently, I'm forced to use Poratble Python.
I've started the Python shell successfully (got ">>>" on-screen).
I've created my HelloWorld.py script (located within subdirectory
"e:/potable python 3.2.1.1/scripts/HelloWorld.py")
I've found out how to navigate within the shell using (in sequence)
"import os" & "os.chdir("/path")" & "os.getcwd()" to check I am where
I need to be.
I've even taken the line of code from the script and typed it in
manually at the prompt... successfully.
However, can I get the script to launch?.....Nope! The book assumes
the user/reader is on a Linux system and lauches the script via
"pyhton HelloWorld.py". I have the added complication of running
within a Windows environment. I think this has forced my knowledge
aquisition to leap-frog the sequence he is following.....
Can anyone help with the above? I'm grasping the nature of having to
import modules necessary to work with, but I'll be damned if I can get
the script to work! :-)
Any help appreciated.
Regards
Mike
On 27/02/2012, M Fernandes <myitpartneruk at gmail.com> wrote:
>
>
More information about the Watford
mailing list