Commits

clach04  committed 81ddd5f Draft

Allow woof to be used as a module

  • Participants
  • Parent commits dddfeff

Comments (0)

Files changed (1)

 
 
 
-def main ():
+def main (argv=None):
+   if argv is None:
+      argv = sys.argv
+
    global cpid, upload, compressed
 
    maxdown = 1
    defaultmaxdown = maxdown
 
    try:
-      options, filenames = getopt.getopt (sys.argv[1:], "hUszjZui:c:p:")
+      options, filenames = getopt.getopt (argv[1:], "hUszjZui:c:p:")
    except getopt.GetoptError, desc:
       usage (defaultport, defaultmaxdown, desc)