/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

  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. #import <Cocoa/Cocoa.h>
  9. #include <unistd.h>
  10. int main(int argc, const char *argv[])
  11. {
  12. char *home = getenv("HOME");
  13. if (home) chdir(home);
  14. return NSApplicationMain(argc, argv);
  15. }