Re: Launching an independent Python program in a cross-platform way (including mac)

2007-05-01 Thread André
My apologies about the last post; I posted my "test" code by mistake, with hard-coded path information. Here's for future reference something that is general and should work cross-platform. André def exec_external(code=None, path=None): """execute code in an external process currently wo

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread André
As promised, here's the solution I came up with for launching an external python script. The function below has been edited (read simplified slightly) from the original one used in Crunchy. Note that while the original has been tested, the following has not- but it should provide a good start *if

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread kyosohma
On Apr 30, 11:29 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I would like to see this as a command along with something to open web > pages.. Just one command instead of trying to figure out all the > different op systems. look forward to seeing your code > > https://sourceforge.net/proj

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread [EMAIL PROTECTED]
I would like to see this as a command along with something to open web pages.. Just one command instead of trying to figure out all the different op systems. look forward to seeing your code https://sourceforge.net/projects/dex-tracker On Apr 30, 9:40 am, André <[EMAIL PROTECTED]> wrote: > On

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread André
On Apr 30, 10:59 am, Kevin Walzer <[EMAIL PROTECTED]> wrote: [snip] > > There are extension modules on the Mac for integrating Python and > AppleScript (the best one is appscript). However, if you want to limit > yourself to core Python, your best best is osascript, a system > command-tool that let

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread Kevin Walzer
Prateek wrote: > On Apr 30, 4:32 am, André <[EMAIL PROTECTED]> wrote: >> I would like to find out how I can launch an independent Python >> program from existing one in a cross-platform way. The result I am >> after is that a new terminal window should open (for io independent of >> the original s

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-29 Thread Prateek
On Apr 30, 4:32 am, André <[EMAIL PROTECTED]> wrote: > I would like to find out how I can launch an independent Python > program from existing one in a cross-platform way. The result I am > after is that a new terminal window should open (for io independent of > the original script). > > The follo

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-29 Thread André
On Apr 29, 8:32 pm, André <[EMAIL PROTECTED]> wrote: > I would like to find out how I can launch an independent Python > program from existing one in a cross-platform way. The result I am > after is that a new terminal window should open (for io independent of > the original script). > > The follo

Launching an independent Python program in a cross-platform way (including mac)

2007-04-29 Thread André
I would like to find out how I can launch an independent Python program from existing one in a cross-platform way. The result I am after is that a new terminal window should open (for io independent of the original script). The following seems to work correctly under Ubuntu and Windows ... but I