Commit 71a5c5fd authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[scripts][worker] Remove use of Prefix

parent 7c092ddf
......@@ -65,8 +65,6 @@ from ..execution.docker import DockerExecutor
from ..dock import Host
from ..worker import WorkerController
from beat.backend.python.utils import Prefix
stop = False
logger = None
......@@ -237,11 +235,10 @@ def main(user_input=None):
# Check the prefix path
prefix = Prefix(args['--prefix'].split(',') if args['--prefix'] is not None else '.')
for p in prefix.paths:
if not os.path.exists(p):
logger.error("Prefix not found at: '%s'", p)
return 1
prefix = args['--prefix'] if args['--prefix'] is not None else '.'
if not os.path.exists(prefix):
logger.error("Prefix not found at: '%s'", prefix)
return 1
# Check the cache path
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment