File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 10
10
if os .path .exists ('.venv' ):
11
11
with open ('.venv' , 'r' ) as venv_file :
12
12
# Get virtualenv path from .venv file
13
- venv_path = venv_file .read ()
13
+ # and remove trailing newline chars
14
+ venv_path = venv_file .read ().rstrip ()
14
15
# Get path of the activation script
15
16
venv_path = os .path .join (venv_path , 'bin/activate_this.py' )
16
17
if not os .path .exists (venv_path ):
Original file line number Diff line number Diff line change 10
10
if os .path .exists ('.venv' ):
11
11
with open ('.venv' , 'r' ) as venv_file :
12
12
# Get virtualenv path from .venv file
13
- venv_path = venv_file .read ()
13
+ # and remove trailing newline chars
14
+ venv_path = venv_file .read ().rstrip ()
14
15
# Get path of the activation script
15
16
venv_path = os .path .join (venv_path , 'bin/activate_this.py' )
16
17
if not os .path .exists (venv_path ):
Original file line number Diff line number Diff line change 10
10
if os .path .exists ('.venv' ):
11
11
with open ('.venv' , 'r' ) as venv_file :
12
12
# Get virtualenv path from .venv file
13
- venv_path = venv_file .read ()
13
+ # and remove trailing newline chars
14
+ venv_path = venv_file .read ().rstrip ()
14
15
# Get path of the activation script
15
16
venv_path = os .path .join (venv_path , 'bin/activate_this.py' )
16
17
if not os .path .exists (venv_path ):
Original file line number Diff line number Diff line change 10
10
if os .path .exists ('.venv' ):
11
11
with open ('.venv' , 'r' ) as venv_file :
12
12
# Get virtualenv path from .venv file
13
- venv_path = venv_file .read ()
13
+ # and remove trailing newline chars
14
+ venv_path = venv_file .read ().rstrip ()
14
15
# Get path of the activation script
15
16
venv_path = os .path .join (venv_path , 'bin/activate_this.py' )
16
17
if not os .path .exists (venv_path ):
Original file line number Diff line number Diff line change 10
10
if os .path .exists ('.venv' ):
11
11
with open ('.venv' , 'r' ) as venv_file :
12
12
# Get virtualenv path from .venv file
13
- venv_path = venv_file .read ()
13
+ # and remove trailing newline chars
14
+ venv_path = venv_file .read ().rstrip ()
14
15
# Get path of the activation script
15
16
venv_path = os .path .join (venv_path , 'bin/activate_this.py' )
16
17
if not os .path .exists (venv_path ):
You can’t perform that action at this time.
0 commit comments