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 1b2256f commit 67bc455Copy full SHA for 67bc455
django_typer/completers.py
@@ -501,7 +501,7 @@ def exists(pth: Path) -> bool:
501
separator = "\\"
502
503
completions = []
504
- incomplete_path = Path(incomplete)
+ incomplete_path = Path(incomplete.replace(separator, os.path.sep))
505
partial_dir = ""
506
if not exists(incomplete_path) and not incomplete.endswith(separator):
507
partial_dir = incomplete_path.name
tests/test_parser_completers.py
@@ -1390,7 +1390,7 @@ def test_pythonpath_completer(self):
1390
"--shell",
1391
SHELL,
1392
"complete",
1393
- f"multi --pythonpath {incomplete}",
+ f"multi --pythonpath '{incomplete}'",
1394
)[0]
1395
for pth in local_dirs:
1396
self.assertIn(f".{sep}{pth}", result)
0 commit comments