diff --git a/vien/_call_funcs.py b/vien/_call_funcs.py index fbbadc9..80e53c7 100644 --- a/vien/_call_funcs.py +++ b/vien/_call_funcs.py @@ -32,7 +32,6 @@ def relative_inner_path(child: Union[str, Path], rel_path = os.path.relpath(child, parent) first = rel_path.split(os.path.sep)[0] - print(first) if first == ".." or first == "." or os.path.isabs(rel_path): raise NotInnerPath(f"The {child} is not a child of {parent}.") return rel_path \ No newline at end of file diff --git a/vien/_constants.py b/vien/_constants.py index 125d551..bc10e77 100644 --- a/vien/_constants.py +++ b/vien/_constants.py @@ -1,3 +1,3 @@ -__version__ = "8.0.5" +__version__ = "8.0.6" __copyright__ = "(c) 2020-2021 Artëm IG " __license__ = "BSD-3-Clause" diff --git a/vien/_parsed_args.py b/vien/_parsed_args.py index 1f61038..31456e9 100644 --- a/vien/_parsed_args.py +++ b/vien/_parsed_args.py @@ -67,6 +67,7 @@ class Commands(Enum): class TempColumns: + """Temporary changes os.environ['COLUMNS'] to a smaller value.""" def __init__(self, width: int): self.width = width self._old_value: Optional[str] = None @@ -110,7 +111,7 @@ def __init__(self, args: Optional[List[str]]): parser = argparse.ArgumentParser() - parser.add_argument("--project-dir", "-p", default=None, type=str, + parser.add_argument("-p", "--project-dir", default=None, type=str, help="the Python project directory " "(default: current working directory). " "Implicitly determines which virtual " @@ -159,7 +160,7 @@ def __init__(self, args: Optional[List[str]]): Commands.call.name, help="run a .py file in the environment") # todo Remove it later. [call -p] is outdated since 2021-05 - parser_call.add_argument("--project-dir", "-p", default=None, + parser_call.add_argument("-p", "--project-dir", default=None, type=str, dest="outdated_call_project_dir", help=argparse.SUPPRESS)