Jack Jansen | 3bbb617 | 2002-07-29 21:36:35 +0000 | [diff] [blame] | 1 | // |
| 2 | // main.m |
| 3 | // PythonLauncher |
| 4 | // |
| 5 | // Created by Jack Jansen on Fri Jul 19 2002. |
| 6 | // Copyright (c) 2002 __MyCompanyName__. All rights reserved. |
| 7 | // |
| 8 | |
| 9 | #import <Cocoa/Cocoa.h> |
Jack Jansen | 7637574 | 2004-06-03 14:15:50 +0000 | [diff] [blame] | 10 | #include <unistd.h> |
Jack Jansen | 3bbb617 | 2002-07-29 21:36:35 +0000 | [diff] [blame] | 11 | |
| 12 | int main(int argc, const char *argv[]) |
| 13 | { |
Jack Jansen | 7637574 | 2004-06-03 14:15:50 +0000 | [diff] [blame] | 14 | char *home = getenv("HOME"); |
| 15 | if (home) chdir(home); |
Jack Jansen | 3bbb617 | 2002-07-29 21:36:35 +0000 | [diff] [blame] | 16 | return NSApplicationMain(argc, argv); |
| 17 | } |