Skip to content

Commit

Permalink
Merge pull request #27 from ignatenkobrain/patch-1
Browse files Browse the repository at this point in the history
Thank you!
  • Loading branch information
FrostyX committed Jan 25, 2015
2 parents 8d41d65 + f947ebb commit 6f29881
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tracer/resources/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ def files(self):
files.append(FilenameCleaner.strip(mmap.path))

# Process arguments
for arg in self.cmdline[1:]:
# this trick is for compatibility for 1.2.x psutil
try:
cmdline = self.cmdline()
except TypeError:
cmdline = self.cmdline
for arg in cmdline[1:]:
if os.path.isfile(arg):
files.append(arg)

Expand Down

0 comments on commit 6f29881

Please sign in to comment.