File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
vtr_flow/scripts/python_libs/vtr Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments