/Mac/PythonLauncher/main.m
http://unladen-swallow.googlecode.com/ · Objective C · 17 lines · 8 code · 2 blank · 7 comment · 1 complexity · f1d81a3cec051e751bdb087fb6c73de6 MD5 · raw file
- //
- // 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);
- }