Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > looking for a simple way to load a program from another python program..

Reply
Thread Tools

looking for a simple way to load a program from another python program..

 
 
Dennis Lee Bieber
Guest
Posts: n/a
 
      08-15-2006
On 14 Aug 2006 17:25:39 -0700, "(E-Mail Removed)"
<(E-Mail Removed)> declaimed the following in comp.lang.python:

> >

> That did not seem to work, os.startfile worked great. I haven't tried


That would tend to imply that "Windows" knows how run ".py"
(startfile is the equivalent of double-clicking an icon), but the
command interpreter is not configured with .py as an extension for
executable programs.

Open a command shell (if you've not created a short-cut for such, it
is at: start/programs/accessories/command prompt

Type: echo %PATHEXT%


C:\Documents and Settings\Dennis Lee Bieber>echo %PATHEXT%
..COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH; .pyw;.py;.pyo;.pyc;.tcl

Is .py in the list yours shows?
--
Wulfraed Dennis Lee Bieber KD6MOG
http://www.velocityreviews.com/forums/(E-Mail Removed) (E-Mail Removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (E-Mail Removed))
HTTP://www.bestiaria.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] require_all 1.0.0: A wonderfully simple way to load your code Tony Arcieri Ruby 11 07-15-2009 08:09 PM
Looking for a way to include Pyhtho scripting INSIDE a python program John Antypas Python 5 04-13-2008 05:43 PM
How to get inputs for a python program that run from another python program pradeep nair Python 2 06-12-2007 01:20 PM
How to force a load of one control from another control on another form? et ASP .Net 1 06-29-2005 07:45 PM
How to force a load of one control from another control on another form? et ASP .Net Datagrid Control 0 06-29-2005 06:05 PM



Advertisments