Re: [dabo-users] will this work for a Mac?

2009-08-10 Thread Henning Hraban Ramm
Am 2009-08-09 um 16:00 schrieb John: I created a pth file to point to the uno.py folder and it works for me. That will be my suggestion to the reader instead of helping them find the file. I suggest to pop up a dialog asking Where is OpenOffice.app? if you can't find it in

Re: [dabo-users] will this work for a Mac?

2009-08-10 Thread John
On Monday 10 August 2009 01:09:50 pm Henning Hraban Ramm wrote: Am 2009-08-09 um 16:00 schrieb John: I created a pth file to point to the uno.py folder and it works for me. That will be my suggestion to the reader instead of helping them find the file. I suggest to pop up a dialog

Re: [dabo-users] will this work for a Mac?

2009-08-09 Thread Paul McNett
Ed Leafe wrote: On Aug 8, 2009, at 10:07 PM, Paul McNett wrote: Not necessarily all dependencies. A bundle could use the system python instead of bundling a specific python, for example. True, but specific modules, such as uno.py, are usually bundled. Back onto the topic at hand,

Re: [dabo-users] will this work for a Mac?

2009-08-09 Thread John
On Saturday 08 August 2009 11:52:19 pm Paul McNett wrote: Ed Leafe wrote: On Aug 8, 2009, at 10:07 PM, Paul McNett wrote: Not necessarily all dependencies. A bundle could use the system python instead of bundling a specific python, for example. True, but specific modules, such as

[dabo-users] will this work for a Mac?

2009-08-08 Thread John
I'm writing an article for the wiki and was wondering if the below code will work on a Mac to find the file 'uno.py'. import os myflag = False for direct in os.walk('/usr'): for wds in direct[1]: pathlist = '/usr/' + wds for x in os.walk(pathlist): for fn in

Re: [dabo-users] will this work for a Mac?

2009-08-08 Thread Ed Leafe
On Aug 8, 2009, at 11:49 AM, John wrote: I'm writing an article for the wiki and was wondering if the below code will work on a Mac to find the file 'uno.py'. Possibly, but there are several things there that are problematic. First, assuming that the user has access rights to /usr

Re: [dabo-users] will this work for a Mac?

2009-08-08 Thread John
On Saturday 08 August 2009 10:24:56 am Ed Leafe wrote: On Aug 8, 2009, at 11:49 AM, John wrote: I'm writing an article for the wiki and was wondering if the below code will work on a Mac to find the file 'uno.py'. Possibly, but there are several things there that are problematic.

Re: [dabo-users] will this work for a Mac?

2009-08-08 Thread Ed Leafe
On Aug 8, 2009, at 5:35 PM, John wrote: Doesn't a user have to have access to /usr/bin? If that is true then reading anything under /usr is possible - right? It depends on the usr and the directory. The code could barf if it hit a directory for which the user does not have read

Re: [dabo-users] will this work for a Mac?

2009-08-08 Thread John
On Saturday 08 August 2009 03:50:44 pm Ed Leafe wrote: On Aug 8, 2009, at 5:35 PM, John wrote: Doesn't a user have to have access to /usr/bin? If that is true then reading anything under /usr is possible - right? It depends on the usr and the directory. The code could barf if it

Re: [dabo-users] will this work for a Mac?

2009-08-08 Thread Ed Leafe
On Aug 8, 2009, at 6:46 PM, John wrote: So I'll tell the reader that they'll have to find the file and somehow get it to import? Can you import the file from a Dabo app? Probably not, as it isn't in my path. I would imagine that anyone who wants to use this will have to install

Re: [dabo-users] will this work for a Mac?

2009-08-08 Thread Paul McNett
Ed Leafe wrote: Doesn't look like it. Mac apps are distributed in bundles: a directory that appears in the OS as a single, double-clickable file, but which contains all dependencies. Not necessarily all dependencies. A bundle could use the system python instead of bundling a

Re: [dabo-users] will this work for a Mac?

2009-08-08 Thread Ed Leafe
On Aug 8, 2009, at 10:07 PM, Paul McNett wrote: Not necessarily all dependencies. A bundle could use the system python instead of bundling a specific python, for example. True, but specific modules, such as uno.py, are usually bundled. -- Ed Leafe