Skip to content

Commit 581c3a4

Browse files
fix pylint errors
1 parent b9add7f commit 581c3a4

File tree

1 file changed

+8
-6
lines changed
  • vtr_flow/scripts/python_libs/vtr

1 file changed

+8
-6
lines changed

vtr_flow/scripts/python_libs/vtr/util.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,16 @@ def run_system_command(
146146
try:
147147
# Call the command
148148
stderr = None if self._valgrind else subprocess.STDOUT
149-
'''
150-
capnproto accesses PWD environment variable to learn about the current working directory.
151-
However, subprocess.Popen() changes the working directory without updating this variable.
152-
This can cause issues when a VTR task passes router lookahead or RR graph files to VPR.
153-
PWD environment variable is updated manually to prevent capnproto from throwing exceptions.
154-
'''
149+
150+
# capnproto accesses PWD environment variable to learn about
151+
# the current working directory. However, subprocess.Popen()
152+
# changes the working directory without updating this variable.
153+
# This can cause issues when a VTR task passes router lookahead
154+
# or RR graph files to VPR. PWD environment variable is updated
155+
# manually to prevent capnproto from throwing exceptions.
155156
modified_environ = os.environ.copy()
156157
modified_environ['PWD'] = str(temp_dir)
158+
157159
proc = subprocess.Popen(
158160
cmd,
159161
stdout=subprocess.PIPE, # We grab stdout

0 commit comments

Comments
 (0)