mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Added shell=True to Popen() on win32
This allows 'dot.exe' to be found when called with 'dot', as long as 'dot.exe' is in the PATH.
This commit is contained in:
@@ -269,9 +269,18 @@ class InheritanceDiagram(object):
|
||||
dot_args.extend(['-Tpng', '-o' + outfn])
|
||||
dot_args.extend(['-Tcmapx', '-o' + mapfile])
|
||||
|
||||
popen_args = {
|
||||
'stdout': PIPE,
|
||||
'stdin': PIPE,
|
||||
'stderr': PIPE
|
||||
}
|
||||
|
||||
if sys.platform == 'win32':
|
||||
popen_args['shell'] = True
|
||||
|
||||
try:
|
||||
|
||||
p = Popen(dot_args, stdout=PIPE, stdin=PIPE, stderr=PIPE)
|
||||
p = Popen(dot_args, **popen_args)
|
||||
|
||||
except OSError as err:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user