Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1394 / win / exe: use QueryFullProcessImageNameW to get the exe() #1413

Merged
merged 4 commits into from
Feb 17, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix py2 unicode issue
  • Loading branch information
giampaolo committed Feb 17, 2019
commit a6381abe6ef6197d9090bafd5028c3cd37bddda3
5 changes: 4 additions & 1 deletion psutil/_pswindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,10 @@ def name(self):

@wrap_exceptions
def exe(self):
return cext.proc_exe(self.pid)
exe = cext.proc_exe(self.pid)
if not PY3:
exe = py2_strencode(exe)
return exe

@wrap_exceptions
def cmdline(self):
Expand Down