aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-26 05:33:56 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-26 05:34:00 +0200
commite522d0174a33dbac2f7a9a52e7006ee864f5067e (patch)
tree001051690dee940955f3c9a932be3b971858b239 /src
parentm fix bug (diff)
downloadargparser-e522d0174a33dbac2f7a9a52e7006ee864f5067e.tar.gz
argparser-e522d0174a33dbac2f7a9a52e7006ee864f5067e.tar.bz2
argparser-e522d0174a33dbac2f7a9a52e7006ee864f5067e.tar.xz
m fix bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/argparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argparser.py b/src/argparser.py
index c5f2db6..7a2cafd 100644
--- a/src/argparser.py
+++ b/src/argparser.py
@@ -80,7 +80,7 @@ class ArgParser():
pid = os.readlink('/proc/self')
lvl = levels
while lvl > 0:
- with open('/proc/%d/status' % pid, 'r') as file:
+ with open('/proc/%s/status' % pid, 'r') as file:
lines = file.readlines()
found = False
for line in lines: