提交 cc43bc2d 编写于 作者: S shenyuhan

fix ci

上级 b534bcf7
...@@ -19,7 +19,6 @@ from __future__ import print_function ...@@ -19,7 +19,6 @@ from __future__ import print_function
import six import six
import sys import sys
import os
from paddlehub.common.logger import logger from paddlehub.common.logger import logger
from paddlehub.common.utils import sys_stdin_encoding from paddlehub.common.utils import sys_stdin_encoding
...@@ -30,8 +29,6 @@ from paddlehub.commands import help ...@@ -30,8 +29,6 @@ from paddlehub.commands import help
from paddlehub.commands import version from paddlehub.commands import version
from paddlehub.commands import run from paddlehub.commands import run
from paddlehub.commands import download from paddlehub.commands import download
from paddlehub.common.lock import lock
from paddlehub.common.dir import CONF_HOME
class HubCommand(BaseCommand): class HubCommand(BaseCommand):
...@@ -69,10 +66,7 @@ def main(): ...@@ -69,10 +66,7 @@ def main():
argv.append(item.decode(sys_stdin_encoding()).decode("utf8")) argv.append(item.decode(sys_stdin_encoding()).decode("utf8"))
else: else:
argv.append(item) argv.append(item)
fp_lock = open(os.path.join(CONF_HOME, 'config.json'))
lock.flock(fp_lock, lock.LOCK_EX)
command.execute(argv[1:]) command.execute(argv[1:])
lock.flock(fp_lock, lock.LOCK_UN)
if __name__ == "__main__": if __name__ == "__main__":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册