Correctly set XML file path

This commit is contained in:
Sven Slootweg 2012-06-03 03:24:43 +02:00
parent 8515414dcc
commit edc2a2f473

View file

@ -36,6 +36,8 @@ parser.add_argument('-x', dest='xml_path', action='store', default='jamendo.xml.
args = parser.parse_args()
options = vars(args)
xml_file = options['xml_path']
if options['no_download'] == False:
print "Retrieving Jamendo database..."
urllib.urlretrieve(xml_url, xml_file, reporthook=update_progress)