示例#1
0
 def process_args(self, args):
     #  Note: When using py2app, argv_emulation should be disabled.
     if args and args[0].startswith("-psn"):
         # Launched from MacOSX Finder -- wait for file open/app launch messages
         pass
     else:
         # Not launched from Finder or using argv emulation
         self._ns_using_clargs = True
         GApplication.process_args(self, args)
 def process_args(self, args):
     #  Note: When using py2app, argv_emulation should be disabled.
     if args and args[0].startswith("-psn"):
         # Launched from MacOSX Finder -- wait for file open/app launch messages
         pass
     else:
         # Not launched from Finder or using argv emulation
         self._ns_using_clargs = True
         GApplication.process_args(self, args)