Back to index

lightning-sunbird  0.9+nobinonly
Functions
regxpcom Namespace Reference

Functions

def ProcessArgs

Function Documentation

def regxpcom.ProcessArgs (   args)

Definition at line 44 of file regxpcom.py.

00044 
00045 def ProcessArgs(args):
00046     unregister = 0
00047     for arg in args:
00048         if arg == "-u":
00049             unregister = 1
00050         else:
00051             spec = components.classes['@mozilla.org/file/local;1'].createInstance()
00052             spec = spec.QueryInterface(components.interfaces.nsILocalFile)
00053             spec.initWithPath(os.path.abspath(arg))
00054             if unregister:
00055                 components.manager.autoUnregisterComponent( components.manager.NS_Startup, spec)
00056                 print "Successfully unregistered", spec.path
00057             else:
00058                 components.manager.autoRegisterComponent( components.manager.NS_Startup, spec)
00059                 print "Successfully registered", spec.path
00060             unregister = 0

Here is the caller graph for this function: