[Tutor] Broken os.system() in Windoze

dman dsh8290@rit.edu
Fri, 28 Sep 2001 00:04:41 -0400


On Wed, Sep 26, 2001 at 02:46:39PM -0700, Kirby Urner wrote:
| dman wrote : 
| >Check your PATH, make sure that whatever the DOS box is is in your
| >PATH. (eg command.com)  You should be able to find environment
| >variables in the Control Panel somewhere.  NT/2k has them under
| >System, then under the Advanced tab in the System dialog.  I haven't
| >looked close enough at my brother's system to know about ME.
| 
| I can check the path via Python itself:
| 
|   >>> os.environ['PATH']
|   'C:\\PROGRA~1\\SYMANTEC\\PCANYW~1\\;C:\\WINDOWS;C:\\WINDOWS\\COMMAND;
|   C:\\UTILS;D:\\JBUILDER\\JDK1.3.1\\BIN'
| 
| Apparently that's not the problem.  Turns out
| r = os.popen('notepad') is working, so I'm able to
| get by with that option.  So far a mystery as to
| why os.system() would die.  Not positive it has
| to do with making WinME boot differently.

Now you need to try `type notepad` and `which notepad` <wink>.
 
| Thanks for offering a pointer/clue.

You're welcome.

-D