Skip to content

Commit

Permalink
no need for startswith in executable name check
Browse files Browse the repository at this point in the history
  • Loading branch information
Teriks committed Jun 14, 2024
1 parent dec40f3 commit 03f6067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dgenerate/batchprocess/configrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ def stderr_handler(line):
# the standard dgenerate executable compiled for console mode
# as well as the executable compiled for windowed mode

if platform.system() == 'Windows' and executable.startswith('dgenerate_windowed'):
if platform.system() == 'Windows' and executable == 'dgenerate_windowed':
extra_kwargs = {'creationflags': subprocess.CREATE_NO_WINDOW}
else:
extra_kwargs = dict()
Expand Down

0 comments on commit 03f6067

Please sign in to comment.