Mercurial > cpython-lru_cache-weakref
annotate Mac/PythonLauncher/main.m @ 58765:2ba7677bfa95 legacy-trunk
testCopysign was defined twice in test_math; combine the definitions
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sat, 06 Feb 2010 23:11:25 +0000 |
| parents | 1cb2ece4b9e1 |
| children | 5d41ebc79738 |
| rev | line source |
|---|---|
|
24426
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1 // |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
2 // main.m |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
3 // PythonLauncher |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
4 // |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
5 // Created by Jack Jansen on Fri Jul 19 2002. |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
6 // Copyright (c) 2002 __MyCompanyName__. All rights reserved. |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
7 // |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
8 |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
9 #import <Cocoa/Cocoa.h> |
|
32227
b791f6554d28
On startup, attempt to set the working directory to $HOME.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24426
diff
changeset
|
10 #include <unistd.h> |
|
24426
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
11 |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
12 int main(int argc, const char *argv[]) |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
13 { |
|
32227
b791f6554d28
On startup, attempt to set the working directory to $HOME.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24426
diff
changeset
|
14 char *home = getenv("HOME"); |
|
b791f6554d28
On startup, attempt to set the working directory to $HOME.
Jack Jansen <jack.jansen@cwi.nl>
parents:
24426
diff
changeset
|
15 if (home) chdir(home); |
|
24426
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
16 return NSApplicationMain(argc, argv); |
|
9afac0dd6b6e
First stab at the launcher application. This will be run when the user
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
17 } |
