On 08/13/2011 08:57 AM, Paul McNett wrote:
> On 8/13/11 8:41 AM, Jeff Johnson wrote:
>>>> os.system("open %s" % document)
>>>>
>>>> Paul
>>>>
>> Paul: Is that Python? Maybe it would work on Linux too? Ultimately I
>> want to run the application from a button click in Dabo just like I do
>> in VFP.
> The os.system() call is Python. The "open document" shell call is Mac. The
> equivalent
> on Windows is "startfile". I don't think there's anything to rely on for
> Linux.
>
> The better python code would use subprocess(), but os.system is so much
> easier to
> remember.
>
> Paul
>
>
>
>
Thanks Paul!
Jeff
>
> -------------------
>
> Jeff Johnson
> [email protected]
>
>
>
>
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]