1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 21:08:06 +01:00

fix problem running get_translations if translations/ doesn't exist

This commit is contained in:
Adam Blackburn
2009-07-05 09:26:24 -10:00
parent 33bc2dd489
commit cbf9ff418c

View File

@@ -412,7 +412,8 @@ class get_translations(Command):
def run(self):
import urllib, shutil
shutil.rmtree('translations/')
if os.path.exists('translations'):
shutil.rmtree('translations/')
os.makedirs('translations')
filename, headers = urllib.urlretrieve('http://wicd.sourceforge.net/translator/idlist/')
id_file = open(filename, 'r')