~malept/ubuntu/lucid/python2.6/dev-dependency-fix

« back to all changes in this revision

Viewing changes to Mac/PythonLauncher/main.m

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-13 12:51:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090213125100-uufgcb9yeqzujpqw
Tags: upstream-2.6.1
ImportĀ upstreamĀ versionĀ 2.6.1

Show diffs side-by-side

added added

removed removed

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