Beispiel #1
0
    def __init__(self, args):
        usage = \
"""usage: %prog [options] source_url destination_url
  %prog [options] --copyjobfile=filelist
  %prog fdt://host1:port/path1/to/file1 fdt://host2:port/path2/to/file2
"""
        # 1 - shall point to the same directory
        currDir = os.path.abspath(__file__).rsplit(os.sep, 1)[0]
        currDirConfig = os.path.join(currDir, "fdtcp.conf")
        # consider only config file being in the same directory
        # as well as in the system config directory location
        locations = [currDirConfig, "/etc/fdtcp/fdtcp.conf"]
        Config.__init__(self, args, locations, usage=usage)
Beispiel #2
0
    def __init__(self, args):
        usage = \
"""usage: %prog [options] source_url destination_url
  %prog [options] --copyjobfile=filelist
  %prog fdt://host1:port/path1/to/file1 fdt://host2:port/path2/to/file2
""" 
        # 1 - shall point to the same directory
        currDir = os.path.abspath(__file__).rsplit(os.sep, 1)[0]
        currDirConfig = os.path.join(currDir, "fdtcp.conf")
        # consider only config file being in the same directory
        # as well as in the system config directory location
        locations = [currDirConfig, "/etc/fdtcp/fdtcp.conf"]           
        Config.__init__(self, args, locations, usage = usage)
Beispiel #3
0
 def __init__(self, args, configFileLocations=[], usage=None):
     Config.__init__(self,
                     args,
                     configFileLocations=configFileLocations,
                     usage=usage)
Beispiel #4
0
 def __init__(self, args, configFileLocations=[], usage=None):
     Config.__init__(self,
                     args,
                     configFileLocations=configFileLocations,
                     usage=usage)