Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 6fea14f

Browse files
committed
Fix setup.py syntax errors.
1 parent 884ee23 commit 6fea14f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ def run(self):
144144

145145
# Merge new template with existing translations.
146146
for po in glob(pjoin(os.getcwd(), 'po', '*.po')):
147-
os.system("msgmerge -U %s po/virtinst.pot" % po)
147+
os.system("msgmerge -U po/%s po/virtinst.pot" %
148+
os.path.basename(po))
148149

149150
class sdist(_sdist):
150151
""" custom sdist command, to prep virtinst.spec file for inclusion """
@@ -165,7 +166,8 @@ def run(self):
165166
os.makedirs("build/po")
166167

167168
for filename in glob(pjoin(os.getcwd(), 'po', '*.po')):
168-
lang = filename[0:len(filename)-3]
169+
filename = os.path.basename(filename)
170+
lang = os.path.basename(filename)[0:len(filename)-3]
169171
if not os.path.exists("build/po/%s" % lang):
170172
os.makedirs("build/po/%s" % lang)
171173
newname = "build/po/%s/virtinst.mo" % lang

0 commit comments

Comments
 (0)