python/cpython

Public

mirrored from https://github.com/python/cpythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
285d96dd784620fe8afb02688abe72a916555061

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Mac/PythonLauncher/main.m

17lines · modepreview

//
//  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);
}