mirror of
https://github.com/python/cpython.git
synced 2024-11-27 23:47:29 +01:00
4e327c9d1c
This changeset fixes a number of compiler warnings in the Python Launcher binary for OSX. It also cleans up whitespace usage in those sources.
18 lines
340 B
Objective-C
Executable File
18 lines
340 B
Objective-C
Executable 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);
|
|
}
|