mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
First stab at the launcher application. This will be run when the user
doubleclicks a .py, .pyw or .pyc file. It runs the file by invoking the relevant interpreter (either the command line Python in a terminal window or a Python.app for GUI-based scripts). Interpreter to use and the options to pass are settable through preferences. If PythonLauncher wasn't running it does its thing for one script and exits. If it was manually started before a dialog is presented where the user can set the options to use, etc. To be done: - option-drag/doubleclick should always open the interactive dialog - Terminal-window isn't done yet - Should be reimplemented in Python, but pyobjc isn't part of the core. - Various menu entries should be disabled.
This commit is contained in:
parent
c0f1e7749c
commit
3bbb617ca4
24 changed files with 1413 additions and 0 deletions
612
Mac/OSX/PythonLauncher/PythonLauncher.pbproj/project.pbxproj
Executable file
612
Mac/OSX/PythonLauncher/PythonLauncher.pbproj/project.pbxproj
Executable file
|
|
@ -0,0 +1,612 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 38;
|
||||
objects = {
|
||||
080E96D9FE201CDB7F000001 = {
|
||||
fileRef = 2A37F4B9FDCFA73011CA2CEA;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
080E96DAFE201CDB7F000001 = {
|
||||
fileRef = 2A37F4B6FDCFA73011CA2CEA;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
080E96DBFE201CDB7F000001 = {
|
||||
fileRef = 2A37F4B4FDCFA73011CA2CEA;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
089C165FFE840EACC02AAC07 = {
|
||||
children = (
|
||||
089C1660FE840EACC02AAC07,
|
||||
);
|
||||
isa = PBXVariantGroup;
|
||||
name = InfoPlist.strings;
|
||||
refType = 4;
|
||||
};
|
||||
089C1660FE840EACC02AAC07 = {
|
||||
fileEncoding = 10;
|
||||
isa = PBXFileReference;
|
||||
name = English;
|
||||
path = English.lproj/InfoPlist.strings;
|
||||
refType = 4;
|
||||
};
|
||||
089C1661FE840EACC02AAC07 = {
|
||||
fileRef = 089C165FFE840EACC02AAC07;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
//080
|
||||
//081
|
||||
//082
|
||||
//083
|
||||
//084
|
||||
//100
|
||||
//101
|
||||
//102
|
||||
//103
|
||||
//104
|
||||
1058C7A6FEA54F5311CA2CBB = {
|
||||
children = (
|
||||
1058C7A7FEA54F5311CA2CBB,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = "Linked Frameworks";
|
||||
refType = 4;
|
||||
};
|
||||
1058C7A7FEA54F5311CA2CBB = {
|
||||
isa = PBXFrameworkReference;
|
||||
name = Cocoa.framework;
|
||||
path = /System/Library/Frameworks/Cocoa.framework;
|
||||
refType = 0;
|
||||
};
|
||||
1058C7A8FEA54F5311CA2CBB = {
|
||||
children = (
|
||||
2A37F4C5FDCFA73011CA2CEA,
|
||||
2A37F4C4FDCFA73011CA2CEA,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = "Other Frameworks";
|
||||
refType = 4;
|
||||
};
|
||||
1058C7A9FEA54F5311CA2CBB = {
|
||||
fileRef = 1058C7A7FEA54F5311CA2CBB;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
//100
|
||||
//101
|
||||
//102
|
||||
//103
|
||||
//104
|
||||
//170
|
||||
//171
|
||||
//172
|
||||
//173
|
||||
//174
|
||||
1758732AFF379DA111CA2CBB = {
|
||||
isa = PBXApplicationReference;
|
||||
path = PythonLauncher.app;
|
||||
refType = 3;
|
||||
};
|
||||
//170
|
||||
//171
|
||||
//172
|
||||
//173
|
||||
//174
|
||||
//190
|
||||
//191
|
||||
//192
|
||||
//193
|
||||
//194
|
||||
19C28FB0FE9D524F11CA2CBB = {
|
||||
children = (
|
||||
1758732AFF379DA111CA2CBB,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = Products;
|
||||
refType = 4;
|
||||
};
|
||||
//190
|
||||
//191
|
||||
//192
|
||||
//193
|
||||
//194
|
||||
//2A0
|
||||
//2A1
|
||||
//2A2
|
||||
//2A3
|
||||
//2A4
|
||||
2A37F4A9FDCFA73011CA2CEA = {
|
||||
buildStyles = (
|
||||
4A9504D0FFE6A4CB11CA0CBA,
|
||||
4A9504D1FFE6A4CB11CA0CBA,
|
||||
);
|
||||
isa = PBXProject;
|
||||
mainGroup = 2A37F4AAFDCFA73011CA2CEA;
|
||||
projectDirPath = "";
|
||||
targets = (
|
||||
2A37F4C6FDCFA73011CA2CEA,
|
||||
);
|
||||
};
|
||||
2A37F4AAFDCFA73011CA2CEA = {
|
||||
children = (
|
||||
2A37F4ABFDCFA73011CA2CEA,
|
||||
2A37F4AFFDCFA73011CA2CEA,
|
||||
2A37F4B8FDCFA73011CA2CEA,
|
||||
2A37F4C3FDCFA73011CA2CEA,
|
||||
19C28FB0FE9D524F11CA2CBB,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = PythonLauncher;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4ABFDCFA73011CA2CEA = {
|
||||
children = (
|
||||
2A37F4AEFDCFA73011CA2CEA,
|
||||
2A37F4ACFDCFA73011CA2CEA,
|
||||
F52A90CD02EB5C6A01000102,
|
||||
F52A90CE02EB5C6A01000102,
|
||||
F5A4C14002F2055C01000102,
|
||||
F5A4C14102F2055C01000102,
|
||||
F5A4C14402F2070D01000102,
|
||||
F5A4C14502F2070D01000102,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = Classes;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4ACFDCFA73011CA2CEA = {
|
||||
isa = PBXFileReference;
|
||||
path = MyDocument.m;
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4AEFDCFA73011CA2CEA = {
|
||||
isa = PBXFileReference;
|
||||
path = MyDocument.h;
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4AFFDCFA73011CA2CEA = {
|
||||
children = (
|
||||
2A37F4B0FDCFA73011CA2CEA,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = "Other Sources";
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4B0FDCFA73011CA2CEA = {
|
||||
isa = PBXFileReference;
|
||||
path = main.m;
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4B4FDCFA73011CA2CEA = {
|
||||
children = (
|
||||
2A37F4B5FDCFA73011CA2CEA,
|
||||
);
|
||||
isa = PBXVariantGroup;
|
||||
name = MyDocument.nib;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4B5FDCFA73011CA2CEA = {
|
||||
isa = PBXFileReference;
|
||||
name = English;
|
||||
path = English.lproj/MyDocument.nib;
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4B6FDCFA73011CA2CEA = {
|
||||
children = (
|
||||
2A37F4B7FDCFA73011CA2CEA,
|
||||
);
|
||||
isa = PBXVariantGroup;
|
||||
name = MainMenu.nib;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4B7FDCFA73011CA2CEA = {
|
||||
isa = PBXFileReference;
|
||||
name = English;
|
||||
path = English.lproj/MainMenu.nib;
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4B8FDCFA73011CA2CEA = {
|
||||
children = (
|
||||
F58D4A3A02F1F94B01000102,
|
||||
F58D4A3B02F1F94B01000102,
|
||||
F58D4A3C02F1F94B01000102,
|
||||
2A37F4B9FDCFA73011CA2CEA,
|
||||
2A37F4B6FDCFA73011CA2CEA,
|
||||
2A37F4B4FDCFA73011CA2CEA,
|
||||
F5A4C13E02F203F601000102,
|
||||
089C165FFE840EACC02AAC07,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = Resources;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4B9FDCFA73011CA2CEA = {
|
||||
children = (
|
||||
2A37F4BAFDCFA73011CA2CEA,
|
||||
);
|
||||
isa = PBXVariantGroup;
|
||||
name = Credits.rtf;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4BAFDCFA73011CA2CEA = {
|
||||
isa = PBXFileReference;
|
||||
name = English;
|
||||
path = English.lproj/Credits.rtf;
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4C3FDCFA73011CA2CEA = {
|
||||
children = (
|
||||
1058C7A6FEA54F5311CA2CBB,
|
||||
1058C7A8FEA54F5311CA2CBB,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = Frameworks;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
2A37F4C4FDCFA73011CA2CEA = {
|
||||
isa = PBXFrameworkReference;
|
||||
name = AppKit.framework;
|
||||
path = /System/Library/Frameworks/AppKit.framework;
|
||||
refType = 0;
|
||||
};
|
||||
2A37F4C5FDCFA73011CA2CEA = {
|
||||
isa = PBXFrameworkReference;
|
||||
name = Foundation.framework;
|
||||
path = /System/Library/Frameworks/Foundation.framework;
|
||||
refType = 0;
|
||||
};
|
||||
2A37F4C6FDCFA73011CA2CEA = {
|
||||
buildPhases = (
|
||||
2A37F4C7FDCFA73011CA2CEA,
|
||||
2A37F4C9FDCFA73011CA2CEA,
|
||||
2A37F4CEFDCFA73011CA2CEA,
|
||||
2A37F4D1FDCFA73011CA2CEA,
|
||||
);
|
||||
buildSettings = {
|
||||
FRAMEWORK_SEARCH_PATHS = "";
|
||||
HEADER_SEARCH_PATHS = "";
|
||||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
LIBRARY_SEARCH_PATHS = "";
|
||||
OTHER_CFLAGS = "";
|
||||
OTHER_LDFLAGS = "";
|
||||
PRODUCT_NAME = PythonLauncher;
|
||||
SECTORDER_FLAGS = "";
|
||||
WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
dependencies = (
|
||||
);
|
||||
isa = PBXApplicationTarget;
|
||||
name = PythonLauncher;
|
||||
productInstallPath = "$(HOME)/Applications";
|
||||
productName = PythonLauncher;
|
||||
productReference = 1758732AFF379DA111CA2CBB;
|
||||
productSettingsXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||
<!DOCTYPE plist SYSTEM \"file://localhost/System/Library/DTDs/PropertyList.dtd\">
|
||||
<plist version=\"0.9\">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>????</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>DocumentType</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>????</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<key>NSDocumentClass</key>
|
||||
<string>MyDocument</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>py</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>PythonSource.icns</string>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Python Script</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Viewer</string>
|
||||
<key>NSDocumentClass</key>
|
||||
<string>MyDocument</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>pyw</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Python GUI Script</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Viewer</string>
|
||||
<key>NSDocumentClass</key>
|
||||
<string>MyDocument</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>pyc</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>PythonCompiled.icns</string>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Python Bytecode Document</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Viewer</string>
|
||||
<key>NSDocumentClass</key>
|
||||
<string>MyDocument</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>PythonLauncher</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>Python Launcher</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>PythonInterpreter.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.python.PythonLauncher</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Python Launcher</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>PytL</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>2.3a0</string>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainMenu</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
</dict>
|
||||
</plist>
|
||||
";
|
||||
shouldUseHeadermap = 1;
|
||||
};
|
||||
2A37F4C7FDCFA73011CA2CEA = {
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
2A37F4C8FDCFA73011CA2CEA,
|
||||
F52A90D002EB5C6A01000102,
|
||||
F5A4C14202F2055D01000102,
|
||||
F5A4C14702F2070D01000102,
|
||||
);
|
||||
isa = PBXHeadersBuildPhase;
|
||||
};
|
||||
2A37F4C8FDCFA73011CA2CEA = {
|
||||
fileRef = 2A37F4AEFDCFA73011CA2CEA;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
2A37F4C9FDCFA73011CA2CEA = {
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
080E96D9FE201CDB7F000001,
|
||||
080E96DAFE201CDB7F000001,
|
||||
080E96DBFE201CDB7F000001,
|
||||
089C1661FE840EACC02AAC07,
|
||||
F58D4A3D02F1F94B01000102,
|
||||
F58D4A3E02F1F94B01000102,
|
||||
F58D4A3F02F1F94B01000102,
|
||||
F5A4C13F02F203F701000102,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
};
|
||||
2A37F4CEFDCFA73011CA2CEA = {
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
2A37F4CFFDCFA73011CA2CEA,
|
||||
2A37F4D0FDCFA73011CA2CEA,
|
||||
F52A90CF02EB5C6A01000102,
|
||||
F5A4C14302F2055D01000102,
|
||||
F5A4C14602F2070D01000102,
|
||||
);
|
||||
isa = PBXSourcesBuildPhase;
|
||||
};
|
||||
2A37F4CFFDCFA73011CA2CEA = {
|
||||
fileRef = 2A37F4ACFDCFA73011CA2CEA;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
ATTRIBUTES = (
|
||||
);
|
||||
};
|
||||
};
|
||||
2A37F4D0FDCFA73011CA2CEA = {
|
||||
fileRef = 2A37F4B0FDCFA73011CA2CEA;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
ATTRIBUTES = (
|
||||
);
|
||||
};
|
||||
};
|
||||
2A37F4D1FDCFA73011CA2CEA = {
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1058C7A9FEA54F5311CA2CBB,
|
||||
);
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
};
|
||||
//2A0
|
||||
//2A1
|
||||
//2A2
|
||||
//2A3
|
||||
//2A4
|
||||
//4A0
|
||||
//4A1
|
||||
//4A2
|
||||
//4A3
|
||||
//4A4
|
||||
4A9504D0FFE6A4CB11CA0CBA = {
|
||||
buildRules = (
|
||||
);
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
OPTIMIZATION_CFLAGS = "-O0";
|
||||
};
|
||||
isa = PBXBuildStyle;
|
||||
name = Development;
|
||||
};
|
||||
4A9504D1FFE6A4CB11CA0CBA = {
|
||||
buildRules = (
|
||||
);
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = YES;
|
||||
};
|
||||
isa = PBXBuildStyle;
|
||||
name = Deployment;
|
||||
};
|
||||
//4A0
|
||||
//4A1
|
||||
//4A2
|
||||
//4A3
|
||||
//4A4
|
||||
//F50
|
||||
//F51
|
||||
//F52
|
||||
//F53
|
||||
//F54
|
||||
F52A90CD02EB5C6A01000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = FileSettings.m;
|
||||
refType = 4;
|
||||
};
|
||||
F52A90CE02EB5C6A01000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = FileSettings.h;
|
||||
refType = 4;
|
||||
};
|
||||
F52A90CF02EB5C6A01000102 = {
|
||||
fileRef = F52A90CD02EB5C6A01000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F52A90D002EB5C6A01000102 = {
|
||||
fileRef = F52A90CE02EB5C6A01000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58D4A3A02F1F94B01000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PythonCompiled.icns;
|
||||
refType = 4;
|
||||
};
|
||||
F58D4A3B02F1F94B01000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PythonInterpreter.icns;
|
||||
refType = 4;
|
||||
};
|
||||
F58D4A3C02F1F94B01000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PythonSource.icns;
|
||||
refType = 4;
|
||||
};
|
||||
F58D4A3D02F1F94B01000102 = {
|
||||
fileRef = F58D4A3A02F1F94B01000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58D4A3E02F1F94B01000102 = {
|
||||
fileRef = F58D4A3B02F1F94B01000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58D4A3F02F1F94B01000102 = {
|
||||
fileRef = F58D4A3C02F1F94B01000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F5A4C13E02F203F601000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PreferenceWindow.nib;
|
||||
refType = 4;
|
||||
};
|
||||
F5A4C13F02F203F701000102 = {
|
||||
fileRef = F5A4C13E02F203F601000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F5A4C14002F2055C01000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PreferencesWindowController.h;
|
||||
refType = 4;
|
||||
};
|
||||
F5A4C14102F2055C01000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PreferencesWindowController.m;
|
||||
refType = 4;
|
||||
};
|
||||
F5A4C14202F2055D01000102 = {
|
||||
fileRef = F5A4C14002F2055C01000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F5A4C14302F2055D01000102 = {
|
||||
fileRef = F5A4C14102F2055C01000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F5A4C14402F2070D01000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = MyAppDelegate.m;
|
||||
refType = 4;
|
||||
};
|
||||
F5A4C14502F2070D01000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = MyAppDelegate.h;
|
||||
refType = 4;
|
||||
};
|
||||
F5A4C14602F2070D01000102 = {
|
||||
fileRef = F5A4C14402F2070D01000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F5A4C14702F2070D01000102 = {
|
||||
fileRef = F5A4C14502F2070D01000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
};
|
||||
rootObject = 2A37F4A9FDCFA73011CA2CEA;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue