From cbf9ff418cf0af950a4664ae74d8a9120b1e4b2b Mon Sep 17 00:00:00 2001 From: Adam Blackburn Date: Sun, 5 Jul 2009 09:26:24 -1000 Subject: [PATCH] fix problem running get_translations if translations/ doesn't exist --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a45ba71..ed56e4e 100755 --- a/setup.py +++ b/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')