Skip to content

Commit 70737cd

Browse files
committed
Fix undesired trailing newline character in 8r-1c-in-band-isis
1 parent 679db0d commit 70737cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nets/8r-1c-in-band-isis/isis8d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
if os.path.exists('.venv'):
1111
with open('.venv', 'r') as venv_file:
1212
# 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()
1415
# Get path of the activation script
1516
venv_path = os.path.join(venv_path, 'bin/activate_this.py')
1617
if not os.path.exists(venv_path):

0 commit comments

Comments
 (0)