[gtk-mac-bundler] Remove the -psn_foo arg gratuitously added by older versions of OS X.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-mac-bundler] Remove the -psn_foo arg gratuitously added by older versions of OS X.
- Date: Wed, 7 Sep 2016 00:05:10 +0000 (UTC)
commit 2a8b7abdb9fb1744eebe9348acbc77ff5467e59d
Author: John Ralls <jralls ceridwen us>
Date: Tue Sep 6 16:43:57 2016 -0700
Remove the -psn_foo arg gratuitously added by older versions of OS X.
examples/python-launcher.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/examples/python-launcher.c b/examples/python-launcher.c
index c8bcca9..91318eb 100644
--- a/examples/python-launcher.c
+++ b/examples/python-launcher.c
@@ -135,8 +135,15 @@ main(int argc, char *argv[])
set_python_path();
Py_Initialize();
wargv[0] = get_bundle_dir();
- for (i = 1; i < argc; ++i)
+ for (i = 1; i < argc; ++i) {
+ if (strncmp(argv[i], "-psn", 4) == 0) {
+ int j;
+ for (j = i; j < argc; ++j)
+ argv[j] = argv[j+1];
+ --argc;
+ }
wargv[i] = widen_c_string(argv[i]);
+ }
PySys_SetArgvEx(argc, wargv, 0);
retval = PyRun_SimpleFile(fd, "");
if (retval != 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]