~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Mac/PythonLauncher/main.m

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

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
}