from optparse import OptionParser
import os
import re, base64
+import configparser
username = ""
password = ""
+def read_config(config_file):
+ config_file = os.path.userexpand(config_file)
+ parser = configparser.SafeConfigParser()
+ parser.read(config_file)
+ return parser
+
def http_get(url):
print "Downloading %s" %url
request = urllib2.Request(url)
(options, args) = parser.parse_args()
+config = parse_config('~/.swuprc')
+
DAILY="/pc/releases/daily/trunk"
WEEKLY="/pc/releases/weekly/trunk"
SNAPSHOTS="/snapshots/trunk/pc/"