Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
0ef23d86
Commit
0ef23d86
authored
Mar 07, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent: Add hack for OS X /usr/bin/python
It's a magical switcher that needs argv[0], which we don't provide.
parent
88508fcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
mitogen/parent.py
mitogen/parent.py
+12
-6
No files found.
mitogen/parent.py
View file @
0ef23d86
...
@@ -26,17 +26,18 @@
...
@@ -26,17 +26,18 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# POSSIBILITY OF SUCH DAMAGE.
import
re
import
getpass
import
inspect
import
logging
import
logging
import
os
import
os
import
termios
import
re
import
signal
import
select
import
select
import
getpass
import
signal
import
time
import
socket
import
socket
import
inspect
import
sys
import
termios
import
textwrap
import
textwrap
import
time
import
zlib
import
zlib
import
mitogen.core
import
mitogen.core
...
@@ -289,6 +290,11 @@ class Stream(mitogen.core.Stream):
...
@@ -289,6 +290,11 @@ class Stream(mitogen.core.Stream):
super
(
Stream
,
self
).
construct
(
**
kwargs
)
super
(
Stream
,
self
).
construct
(
**
kwargs
)
if
python_path
:
if
python_path
:
self
.
python_path
=
python_path
self
.
python_path
=
python_path
if
sys
.
platform
==
'darwin'
and
self
.
python_path
==
'/usr/bin/python'
:
# OS X installs a craptacular argv0-introspecting Python version
# switcher as /usr/bin/python. Override attempts to call it with an
# explicit call to python2.7
self
.
python_path
=
'/usr/bin/python2.7'
if
connect_timeout
:
if
connect_timeout
:
self
.
connect_timeout
=
connect_timeout
self
.
connect_timeout
=
connect_timeout
if
remote_name
is
None
:
if
remote_name
is
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment