Skip to content

Commit 197941c

Browse files
Merge 7b94bf1 into master
2 parents 65553fe + 7b94bf1 commit 197941c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

vien/_call_funcs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def relative_inner_path(child: Union[str, Path],
3232
rel_path = os.path.relpath(child, parent)
3333

3434
first = rel_path.split(os.path.sep)[0]
35-
print(first)
3635
if first == ".." or first == "." or os.path.isabs(rel_path):
3736
raise NotInnerPath(f"The {child} is not a child of {parent}.")
3837
return rel_path

vien/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "8.0.5"
1+
__version__ = "8.0.6"
22
__copyright__ = "(c) 2020-2021 Artëm IG <github.com/rtmigo>"
33
__license__ = "BSD-3-Clause"

vien/_parsed_args.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class Commands(Enum):
6767

6868

6969
class TempColumns:
70+
"""Temporary changes os.environ['COLUMNS'] to a smaller value."""
7071
def __init__(self, width: int):
7172
self.width = width
7273
self._old_value: Optional[str] = None
@@ -110,7 +111,7 @@ def __init__(self, args: Optional[List[str]]):
110111

111112
parser = argparse.ArgumentParser()
112113

113-
parser.add_argument("--project-dir", "-p", default=None, type=str,
114+
parser.add_argument("-p", "--project-dir", default=None, type=str,
114115
help="the Python project directory "
115116
"(default: current working directory). "
116117
"Implicitly determines which virtual "
@@ -159,7 +160,7 @@ def __init__(self, args: Optional[List[str]]):
159160
Commands.call.name,
160161
help="run a .py file in the environment")
161162
# todo Remove it later. [call -p] is outdated since 2021-05
162-
parser_call.add_argument("--project-dir", "-p", default=None,
163+
parser_call.add_argument("-p", "--project-dir", default=None,
163164
type=str,
164165
dest="outdated_call_project_dir",
165166
help=argparse.SUPPRESS)

0 commit comments

Comments
 (0)