Skip to content

Commit

Permalink
Merge branch 'main' into release/0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxJPRey committed Dec 3, 2021
2 parents e2b59fb + 7147483 commit 81be1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyaedt/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def _get_tasks_list_windows(self, student_version):

p = subprocess.Popen('tasklist /FI "IMAGENAME eq {}" /v'.format(process), stdout=subprocess.PIPE)
result = p.communicate()
output = result[0].decode(encoding=sys.stdout.encoding, errors='ignore').split(os.linesep)
output = result[0].decode(encoding="utf-8", errors='ignore').split(os.linesep)

pattern = r"(?i)^(?:{})\s+?(\d+)\s+.+[\s|\\](?:{})\s+".format(process, username)
for l in output:
Expand Down

0 comments on commit 81be1f1

Please sign in to comment.