From 51b35e5e3e4233dc8a4e5848ffe72e8022a189d8 Mon Sep 17 00:00:00 2001 From: Izhar Firdaus Date: Fri, 26 Dec 2008 14:56:40 +0800 Subject: - some cleanup --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 0d75719..712474f 100755 --- a/setup.py +++ b/setup.py @@ -8,16 +8,17 @@ prefix="/usr" pyscripts = ["fusion-desktop-effects"] scripts = ["compiz-fusion-gtk"] desktopfiles = ['compiz-fusion-gtk.desktop','fusion-desktop-effects.desktop'] -pofiles = [] +podir = "po/" + +mofiles = [] -podir = os.path.join (os.path.realpath ("."), "po") if os.path.isdir (podir): mopath = "build/locale/%s/fusion-desktop-effects.mo" destpath = "share/locale/%s/LC_MESSAGES" for name in os.listdir (podir): if name[-2:] == "po": name = name[:-3] - pofiles.append ((destpath % name, [mopath % name])) + mofiles.append ((destpath % name, [mopath % name])) def simple_getopt(l,var): @@ -73,7 +74,6 @@ class build(_build): if not os.path.isdir ("build/locale/" + name): os.makedirs ("build/locale/" + name) subprocess.Popen(buildcmd % (name, name),shell=True) - pofiles.append ((destpath % name, [mopath % name])) _build.run(self) -- cgit