Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsinstall Namespace Reference

Functions

def BadArg
def handleTarget

Variables

string usage = "usage: %prog [options] arg1 [arg2 ...] target-directory"
tuple p = OptionParser(usage=usage)
string help = "Create a single directory only"
tuple target = args.pop()
tuple dest

Function Documentation

def nsinstall.BadArg (   option,
  opt,
  value,
  parser 
)

Definition at line 72 of file nsinstall.py.

00072 
00073 def BadArg(option, opt, value, parser):
00074   parser.error('option not supported: %s' % opt)
00075 
00076 p.add_option('-C', action="callback", metavar="CWD",
00077              callback=BadArg,
00078              help="NOT SUPPORTED")
00079 p.add_option('-o', action="callback", callback=BadArg,
00080              help="Set owner (NOT SUPPORTED)", metavar="owner")
00081 p.add_option('-g', action="callback", callback=BadArg,
00082              help="Set group (NOT SUPPORTED)", metavar="group")
00083 
00084 (options, args) = p.parse_args()

def nsinstall.handleTarget (   srcpath,
  targetpath 
)

Definition at line 117 of file nsinstall.py.

00117 
00118   def handleTarget(srcpath, targetpath):
00119     # target directory was already created, just use mkdir
00120     os.mkdir(dest)
else:

Variable Documentation

Initial value:
00001 os.path.join(target,
00002                       os.path.basename(os.path.normpath(f)))

Definition at line 135 of file nsinstall.py.

string nsinstall.help = "Create a single directory only"

Definition at line 56 of file nsinstall.py.

tuple nsinstall.p = OptionParser(usage=usage)

Definition at line 53 of file nsinstall.py.

tuple nsinstall.target = args.pop()

Definition at line 129 of file nsinstall.py.

string nsinstall.usage = "usage: %prog [options] arg1 [arg2 ...] target-directory"

Definition at line 52 of file nsinstall.py.