We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2694629 commit a99ac98Copy full SHA for a99ac98
version_query/query.py
@@ -18,9 +18,9 @@ def _caller_folder(stack_level: int = 1) -> pathlib.Path:
18
frame_info = inspect.getouterframes(inspect.currentframe())[stack_level]
19
caller_path = frame_info[1] # frame_info.filename
20
21
- here = pathlib.Path(caller_path).absolute().resolve()
22
- assert here.is_file() or here.name == '<string>', here
23
- here = here.parent
+ here = pathlib.Path(caller_path).absolute()
+ assert here.name == '<string>' or here.is_file(), here
+ here = here.parent.resolve()
24
assert here.is_dir(), here
25
_LOG.debug('found directory "%s"', here)
26
0 commit comments