Browse Source

ARGV[0] fixup

master
Andrea Luzzardi 18 years ago
parent
commit
ea56d2f316
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      pam_usb/tools/pusb_adm
  2. +2
    -2
      pam_usb/tools/pusb_hotplug

+ 2
- 1
pam_usb/tools/pusb_adm View File

@ -18,6 +18,7 @@
import dbus
import sys
import os
from xml.dom import minidom
class Device:
@ -134,7 +135,7 @@ def addDevice(options):
print 'Done.'
def usage():
print 'Usage: %s [--config file] --add-device <name> [--no-autodetect]' % sys.argv[0]
print 'Usage: %s [--config file] --add-device <name> [--no-autodetect]' % os.path.basename(__file__)
sys.exit(1)
import getopt


+ 2
- 2
pam_usb/tools/pusb_hotplug View File

@ -102,8 +102,8 @@ class Log:
syslog.syslog(priority, message)
def usage():
print 'Usage: %s [--config file] [--daemon] [--path pusb_check_path]' \
% sys.argv[0]
print 'Usage: %s [--config file] [--daemon] [--path pusb_check_path]' % \
os.path.basename(__file__)
sys.exit(1)
import getopt


Loading…
Cancel
Save