Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
56543796
Unverified
Commit
56543796
authored
Jul 17, 2019
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a small fix for virtual envs pointing at a base Python install
parent
442ff521
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
poetry/utils/env.py
+13
-0
No files found.
poetry/utils/env.py
View file @
56543796
...
@@ -723,6 +723,19 @@ class Env(object):
...
@@ -723,6 +723,19 @@ class Env(object):
"""
"""
bin_path
=
(
self
.
_bin_dir
/
bin
)
.
with_suffix
(
".exe"
if
self
.
_is_windows
else
""
)
bin_path
=
(
self
.
_bin_dir
/
bin
)
.
with_suffix
(
".exe"
if
self
.
_is_windows
else
""
)
if
not
bin_path
.
exists
():
if
not
bin_path
.
exists
():
# On Windows, some executables can be in the base path
# This is especially true when installing Python with
# the official installer, where python.exe will be at
# the root of the env path.
# This is an edge case and should not be encountered
# in normal uses but this happens in the sonnet script
# that creates a fake virtual environment pointing to
# a base Python install.
if
self
.
_is_windows
:
bin_path
=
(
self
.
_path
/
bin
)
.
with_suffix
(
".exe"
)
if
bin_path
.
exists
():
return
str
(
bin_path
)
return
bin
return
bin
return
str
(
bin_path
)
return
str
(
bin_path
)
...
...
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