Skip to content
Snippets Groups Projects
Commit c5b5949c authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

data-setup: make it work with the weird work-1 version

click kept feeding use bytes instead of Path, so we had to adapt.
parent b9a8a851
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,9 @@
ARGS:
DATA_ENV: Path to the data-env folder containing the main repository
"""
if isinstance(data_env, bytes):
data_env = data_env.decode("utf8")
data_env = Path(data_env)
description_file = data_env / "data-env.poulpe"
if description_file.exists():
if force:
......@@ -86,6 +88,8 @@
if name is None:
name = data_env.name
if isinstance(repo, bytes):
repo = repo.decode("utf8")
relative_repo = data_env / repo
if not relative_repo.is_dir():
click.secho(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment