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:
3
setup.py
3
setup.py
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user