mirror of
https://github.com/gryf/wicd.git
synced 2025-12-21 05:18:02 +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):
|
def run(self):
|
||||||
import urllib, shutil
|
import urllib, shutil
|
||||||
shutil.rmtree('translations/')
|
if os.path.exists('translations'):
|
||||||
|
shutil.rmtree('translations/')
|
||||||
os.makedirs('translations')
|
os.makedirs('translations')
|
||||||
filename, headers = urllib.urlretrieve('http://wicd.sourceforge.net/translator/idlist/')
|
filename, headers = urllib.urlretrieve('http://wicd.sourceforge.net/translator/idlist/')
|
||||||
id_file = open(filename, 'r')
|
id_file = open(filename, 'r')
|
||||||
|
|||||||
Reference in New Issue
Block a user