提交 35f827ca 编写于 作者: K Kentaro Wada

Update build_py

上级 e0f2d450
...@@ -14,12 +14,12 @@ class LabelmeBuildPyCommand(BuildPyCommand): ...@@ -14,12 +14,12 @@ class LabelmeBuildPyCommand(BuildPyCommand):
def run(self): def run(self):
BuildPyCommand.run(self) BuildPyCommand.run(self)
src = 'labelme/resources.qrc' this_dir = osp.dirname(osp.abspath(__file__))
dst = 'labelme/resources.py' src = osp.join(this_dir, 'labelme/resources.qrc')
dst = osp.join(this_dir, 'labelme/resources.py')
cmd = 'pyrcc4 -o {1} {0}'.format(src, dst) cmd = 'pyrcc4 -o {1} {0}'.format(src, dst)
print('converting {0} -> {1}'.format(src, dst)) print('converting {0} -> {1}'.format(src, dst))
this_dir = osp.dirname(osp.abspath(__file__)) subprocess.call(shlex.split(cmd))
subprocess.call(shlex.split(cmd), cwd=this_dir)
try: try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册