diff options
Diffstat (limited to 'Mac/PythonLauncher/main.m')
-rwxr-xr-x | Mac/PythonLauncher/main.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Mac/PythonLauncher/main.m b/Mac/PythonLauncher/main.m new file mode 100755 index 0000000..6841433 --- /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); +} |