Hi Martin,

Il 19/07/2011 22:16, Martin Zibricky ha scritto:
> Antonio Valentino píše v Út 19. 07. 2011 v 21:14 +0200:
>>
>> The good news is that with a couple of small workarounds all works
>> like
>> a charm if the bundle is built in one file mode. 
> 
> Hi Antonio,
> 
> could you please provide more details?
> 

sorry, I forgot to say that it is a Qt based app.

Regarding workarouns, I just applied the small patch attached to

http://www.pyinstaller.org/ticket/380

to pyinstaller and then I modified my main program to filter out extra
command line arguments

args = [arg for arg in sys.argv[1:] if not arg.startswith('-psn_')]

before command line processing with OptionParser.

options, args = parser.parse_args(args)

See

http://sourceforge.net/apps/trac/gsdview/changeset/959

As I said in my previous post, it seems the when the app is started from
the mac bundle an extra cmd line argument (starting with "-psn_") is
passed as parameter to the app.

My app detects it as a not supported option and exits.
So I have to remove it from the args to avoid the problem an let the
application start regularly.

regards

-- 
Antonio Valentino

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to