VirtualMailManager/cli/__init__.py
branchv0.6.x
changeset 340 4515afec62e5
parent 320 011066435e6f
child 366 d6573da35b5f
--- a/VirtualMailManager/cli/__init__.py	Thu Aug 05 02:38:20 2010 +0000
+++ b/VirtualMailManager/cli/__init__.py	Thu Aug 05 05:08:02 2010 +0000
@@ -19,11 +19,12 @@
 from VirtualMailManager.errors import VMMError
 
 
-__all__ = ('get_winsize', 'read_pass', 'w_err', 'w_std')
+__all__ = ('prog', 'get_winsize', 'read_pass', 'w_err', 'w_std')
 
 _ = lambda msg: msg
 _std_write = os.sys.stdout.write
 _err_write = os.sys.stderr.write
+prog = os.path.basename(os.sys.argv[0])
 
 
 def w_std(*args):