Skip to content

Commit

Permalink
Merge 7b94bf1 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored May 28, 2021
2 parents 65553fe + 7b94bf1 commit 197941c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion vien/_call_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion vien/_constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "8.0.5"
__version__ = "8.0.6"
__copyright__ = "(c) 2020-2021 Artëm IG <github.com/rtmigo>"
__license__ = "BSD-3-Clause"
5 changes: 3 additions & 2 deletions vien/_parsed_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 "
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 197941c

Please sign in to comment.