aboutsummaryrefslogtreecommitdiffstats
path: root/share/msec.py
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-01-28 18:41:21 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-01-28 18:41:21 +0000
commitebdfe85d389d1723c490bcf4f7ba25930ed52a6f (patch)
treef00c8cf0275fa92756cad25ef1c0c0792ff933b9 /share/msec.py
parent689deae5df439661625d7d1a24fc4f6dbdd82900 (diff)
downloadmsec-ebdfe85d389d1723c490bcf4f7ba25930ed52a6f.tar
msec-ebdfe85d389d1723c490bcf4f7ba25930ed52a6f.tar.gz
msec-ebdfe85d389d1723c490bcf4f7ba25930ed52a6f.tar.bz2
msec-ebdfe85d389d1723c490bcf4f7ba25930ed52a6f.tar.xz
msec-ebdfe85d389d1723c490bcf4f7ba25930ed52a6f.zip
report msec instead of msec.py in the error messages.
Diffstat (limited to 'share/msec.py')
-rwxr-xr-xshare/msec.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/msec.py b/share/msec.py
index 1843c71..30cade9 100755
--- a/share/msec.py
+++ b/share/msec.py
@@ -42,7 +42,7 @@ try:
(opt, args) = getopt.getopt(sys.argv[1:], 'o:',
['option'])
except getopt.error:
- error(_('Invalid option. Use %s (-o var=<val>...) ([0-5])') % sys.argv[0])
+ error(_('Invalid option. Use %s (-o var=<val>...) ([0-5])') % _name)
sys.exit(1)
@@ -70,7 +70,7 @@ else:
if len(args) == 0:
level = get_secure_level()
if level == None:
- error(_('Secure level not set. Use %s <secure level> to set it.') % sys.argv[0])
+ error(_('Secure level not set. Use %s <secure level> to set it.') % _msec)
sys.exit(1)
else:
level = args[0]
@@ -78,11 +78,11 @@ else:
try:
level = int(level)
except ValueError:
- error(_('Invalid secure level %s. Use %s [0-5] to set it.') % (level, sys.argv[0]))
+ error(_('Invalid secure level %s. Use %s [0-5] to set it.') % (level, _msec))
sys.exit(1)
if level < 0 or level > 5:
- error(_('Invalid secure level %s. Use %s [0-5] to set it.') % (level, sys.argv[0]))
+ error(_('Invalid secure level %s. Use %s [0-5] to set it.') % (level, _msec))
sys.exit(1)
interactive and log(_('### Program is starting ###'))