diff options
author | Sebastien Martini <seb@dbzteam.org> | 2009-11-16 19:45:32 +0100 |
---|---|---|
committer | Sebastien Martini <seb@dbzteam.org> | 2009-11-16 19:45:32 +0100 |
commit | a398d07592a7fb7fe9c1a6b0d5bfd9c90d849431 (patch) | |
tree | 2da0dabfbbc19a546594a531491bd57b964d9226 /python3 | |
parent | 8a8c979c7858e04492aea925689a2ddc89ab8703 (diff) | |
download | pyinotify-a398d07592a7fb7fe9c1a6b0d5bfd9c90d849431.tar.gz |
Fixed default pid file basename (contributed by Matteo Lanza
matteo.lanza@gmail.com).
Diffstat (limited to 'python3')
-rwxr-xr-x | python3/pyinotify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python3/pyinotify.py b/python3/pyinotify.py index bce5039..29a52ae 100755 --- a/python3/pyinotify.py +++ b/python3/pyinotify.py @@ -1160,7 +1160,7 @@ class Notifier: """ if pid_file is None: dirname = '/var/run/' - basename = sys.argv[0] or 'pyinotify' + basename = os.path.basename(sys.argv[0]) or 'pyinotify' pid_file = os.path.join(dirname, basename + '.pid') if os.path.exists(pid_file): |