summaryrefslogtreecommitdiff
path: root/Mac/PythonLauncher/main.m
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/PythonLauncher/main.m')
-rwxr-xr-xMac/PythonLauncher/main.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/Mac/PythonLauncher/main.m b/Mac/PythonLauncher/main.m
new file mode 100755
index 0000000000..6841433f42
--- /dev/null
+++ b/Mac/PythonLauncher/main.m
@@ -0,0 +1,17 @@
+//
+// main.m
+// PythonLauncher
+//
+// Created by Jack Jansen on Fri Jul 19 2002.
+// Copyright (c) 2002 __MyCompanyName__. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#include <unistd.h>
+
+int main(int argc, const char *argv[])
+{
+ char *home = getenv("HOME");
+ if (home) chdir(home);
+ return NSApplicationMain(argc, argv);
+}