[gtk-mac-bundler] Add license, enable optimization.



commit 7f8ab3c78251a5efa8bacd4d222861b144fa47e2
Author: John Ralls <jralls ceridwen us>
Date:   Sat Jun 17 17:36:31 2017 -0700

    Add license, enable optimization.

 examples/python-launcher.c |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/examples/python-launcher.c b/examples/python-launcher.c
index 06605eb..9d1e305 100644
--- a/examples/python-launcher.c
+++ b/examples/python-launcher.c
@@ -1,3 +1,23 @@
+/* python-launcher.c
+ * Launch a python interpreter to run a bundled python application.
+ *
+ * Copyright 2016       John Ralls <jralls ceridwen us>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
 #include <Python.h>
 #include <CoreFoundation/CoreFoundation.h>
 #include <sys/syslimits.h>
@@ -133,6 +153,7 @@ main(int argc, char *argv[])
        return -1;
     }
     set_python_path();
+    setenv("PYTHONOPTIMIZE", "yes", 0);
     Py_Initialize();
     wargv[0] = get_bundle_dir();
     for (i = 1; i < argc; ++i) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]