Skip to content

Commit

Permalink
Bug fix: fix #2, module "subprocess" doesn't has "STARTIPINFO" in Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
sxr1223 committed Sep 9, 2024
1 parent 841bee2 commit 6ec7be3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions VeribleFormatterVerilog.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,14 @@ def run(self, edit):
if not encoding:
encoding = "utf8"

# excute command
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
# excute command
if hasattr(subprocess, "STARTUPINFO"):
# for windows
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
else:
# for linux
startupinfo = None

command_res = ' '.join(command)
# print(command_res)
Expand Down

0 comments on commit 6ec7be3

Please sign in to comment.