py2app experts,
I have a script that is packaged using and py2app that does a
pre-check to see if a command line utility is installed, using Popen
and "which name". (The script downloads and installs it if not.)
I pass subprocess.PIPE for stdout and stderr, with shell=True.
When I run the script
Hi there how are you doing?
My main.py is up-level in other folder and I would like to know how can I
customize the py2app setup script to create a folder on the
Resources/folder/main.py and then boot it automatically.
Thanks.
--
___
Pythonmac-SIG maill
Adam Morris wrote:
Could this be a problem with py2app, or is there something about the
run-time environment I've overlooked?
Would also be interested if there is a better way of checking to see
if a command line utility is currently located in the path for the
current user's system.
I think w
On Dec 28, 2010, at 12:46 AM, Christopher Barker wrote:
> I think you could specifically search for the utility in places it might be
> expected to be found:
>
> /usr/bin
> /usr/local/bin
> /sw/... (for fink)
> /opt/... (for macports)
That's the first thing I tried; maybe I typed wrong? I'll gi
On Tue, Dec 28, 2010, Adam Morris wrote:
> On Dec 28, 2010, at 12:46 AM, Christopher Barker
> wrote:
>
>> I think you could specifically search for the utility in places it
>> might be expected to be found:
>>
>> /usr/bin
>> /usr/local/bin
>> /sw/... (for fink)
>> /opt/... (for macports)
>
> Th
On Dec 28, 2010, at 12:24 PM, Aahz wrote:
> Nope. If you're doing that, just use os.path.exists() or isfile().
> Faster and safer.
I was hoping that I could detect it no matter where it was so advanced users
could do symlinks or move it to their own folders or whatever which made me
think of