Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Expand the path so can complete paths with ~ in them #63

Closed
wants to merge 1 commit into from

Conversation

idvorkin
Copy link

@idvorkin idvorkin commented Mar 7, 2022

No description provided.

@idvorkin
Copy link
Author

idvorkin commented Mar 13, 2022

@tiangolo - Pushing to top!

@pchanial
Copy link

pchanial commented Sep 20, 2023

pathlib and os.path shouldn't be mixed, you could use Path(path_or_module).expanduser().
strange to use Path on a module though.

@tiangolo
Copy link
Owner

tiangolo commented Apr 6, 2024

Thanks for the interest @idvorkin! Paths with ~ in them are normally expanded by the shell calling the program (Bash, Zsh, etc). So this shouldn't be necessary.

If you have a specific use case that is not working, it would be great if you can create an example showing it in: https://github.com/tiangolo/typer/discussions/new?category=questions

For now, I'll pass on this one, but thanks for the interest! 🍰


Note: typer-cli is now integrated into Typer itself, when you install pip install typer, you automatically get the typer command too.

The code here is now integrated into typer itself. 🚀

@tiangolo tiangolo closed this Apr 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants