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
bc3ad7db
Unverified
Commit
bc3ad7db
authored
Feb 09, 2021
by
pwoolvett
Committed by
GitHub
Feb 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(shell): quote path before activating env
Resolves: #3630
parent
ae60ac58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
poetry/utils/shell.py
+5
-1
No files found.
poetry/utils/shell.py
View file @
bc3ad7db
...
...
@@ -65,6 +65,8 @@ class Shell:
if
WINDOWS
:
return
env
.
execute
(
self
.
path
)
import
shlex
terminal
=
Terminal
()
with
env
.
temp_environ
():
c
=
pexpect
.
spawn
(
...
...
@@ -77,7 +79,9 @@ class Shell:
activate_script
=
self
.
_get_activate_script
()
bin_dir
=
"Scripts"
if
WINDOWS
else
"bin"
activate_path
=
env
.
path
/
bin_dir
/
activate_script
c
.
sendline
(
"{} {}"
.
format
(
self
.
_get_source_command
(),
activate_path
))
c
.
sendline
(
"{} {}"
.
format
(
self
.
_get_source_command
(),
shlex
.
quote
(
str
(
activate_path
)))
)
def
resize
(
sig
:
Any
,
data
:
Any
)
->
None
:
terminal
=
Terminal
()
...
...
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