Closed 50eff062-408a-4098-b1b2-8222303b9d0c closed 22 years ago
I've run in to this a couple of times since I have been using Python exclusively on OS X built as a Framework. When built and installed as a framework, python reports that sys.executable is:
/Library/Frameworks/Python.framework/Versions/ 2.2/Python
Which may or may not be technically right. But since certain scripts assume they can execute the value of sys.executable to get a new python interpreter, they fail. Instead, they need to be pointed to
/Library/Frameworks/Python.framework/Versions/ 2.2/bin/python.exe
Not sure if and how this can be fixed, but it would be nice.
Logged In: YES user_id=45365
Fixed in Modules/getpath.c rev 1.40.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields: ```python assignee = 'https://github.com/jackjansen' closed_at =
created_at =
labels = ['OS-mac']
title = 'Framework reports wrong sys.executable'
updated_at =
user = 'https://bugs.python.org/anonymous'
```
bugs.python.org fields:
```python
activity =
actor = 'jackjansen'
assignee = 'jackjansen'
closed = True
closed_date = None
closer = None
components = ['macOS']
creation =
creator = 'anonymous'
dependencies = []
files = []
hgrepos = []
issue_num = 487152
keywords = []
message_count = 2.0
messages = ['7854', '7855']
nosy_count = 1.0
nosy_names = ['jackjansen']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue487152'
versions = []
```