Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Update autodiscovery function for windows#118

Open
hansey wants to merge 1 commit into
sanic-org:mainfrom
hansey:main
Open

Update autodiscovery function for windows#118
hansey wants to merge 1 commit into
sanic-org:mainfrom
hansey:main

Conversation

@hansey

@hansey hansey commented Apr 26, 2022

Copy link
Copy Markdown

The sep of path under windows is "" instead of "/" under linux or macos. Update a variable to automatically change the sep of path

@ChihweiLHBird

Copy link
Copy Markdown
Member

Can we do the same thing with pathlib, the more modern Python APIs?

@hansey

hansey commented May 6, 2022

Copy link
Copy Markdown
Author

@ChihweiLHBird you mean directly get the name via Path(path).name?

@ahopkins

Copy link
Copy Markdown
Member

@ChihweiLHBird you mean directly get the name via Path(path).name?

yes

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