[TriLUG] Portable Python [ Was Re: booting an external disk with grub 0.97 ]
Joseph Mack NA3T via TriLUG
trilug at trilug.org
Wed Apr 22 08:24:53 EDT 2015
On Tue, 21 Apr 2015, Lance A. Brown via TriLUG wrote:
> Call me nuts, but I'm running Python just fine using Portable Python
> 2.7.6.1 on my Windows 8.1 Lenovo Carbon X1. Even comes with PyCharm and
> most useful python modules preinstalled. Is there a specific reason to
> run linux?
>
> http://portablepython.com/
OK have it installed on a flash drive. I tried a one liner
print "hello world"
and ran it in a DOS box according to
http://portablepython.com/doc/2.7/hello-world/
using the command (approximately)
e:\portable_python\portable_python.exe hello_world.py
I'm expecting to see "hello world" printed on the next line. Instead a new DOS
box appears and then closes without me seeing anything. If I have the program
wait for input by adding another line
raw_input ("foo")
the new DOS box doesn't close and I see the line "hello world" followed by
another line "foo".
Is there a way to display the output to the screen and then return to the
prompt, leaving the output of the program on the screen, as you would in unix?
Thanks Joe
--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) austintek (dot) com - azimuthal equidistant
map generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!
More information about the TriLUG
mailing list