We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The simple example does not work on Windows.
pyproject.toml
# pyproject.toml [project.optional-dependencies] dev = ["doitoml"] [tool.doit] loader = "doitoml" verbosity = 2 [tool.doitoml.tasks.hello] actions = ['echo "Hello World!"']
Run pip install -e .[dev]
pip install -e .[dev]
Run doit
doit
See an UnsafePathError:
UnsafePathError
UnsafePathError: The path is outside the known `safe_paths`: C:/sandboxes/bug-test -c:/sandboxes/bug-test
Run doit and you should see
. hello: Hello World!
doitoml
Note the capitalization mismatch on the drive letter. If I pass through a traditional dodo.py everything works well.
dodo.py
# dodo.py from pathlib import Path from doitoml import DoiTOML class P: """Paths.""" DODO = Path(__file__) ROOT = DODO.parent doitoml = DoiTOML( config_paths=[P.ROOT / "pyproject.toml"] ) globals().update(doitoml.tasks())
-c:/sandboxes/bug-test
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
The simple example does not work on Windows.
Reproduce
pyproject.toml
from the simple example:Run
pip install -e .[dev]
Run
doit
See an
UnsafePathError
:Expected behavior
Run
doit
and you should seeContext
doit
version(s): 0.36.0doitoml
version(s): 0.2.0Note the capitalization mismatch on the drive letter. If I pass through a traditional
dodo.py
everything works well.Command Line Output
The text was updated successfully, but these errors were encountered: