package help find the project root folder.
Project description
wpath
wpath: a package help you find the project workspace
Install
git clone https://github.com/cofepy/wpath
cd wpath
python setup.py install
or
pip install wpath
Env file
add one of flags [".env",".gitignore",".git","package.json"] into your project workspace.
Useage
import wpath
# this will add your workspace to python path
# by default, wpath will search parent folder which has an '.env' file as workspace flag
# show project workspace,
# if not found the flag, wpath.workspace() will return None
print(wpath.workspace())
# change default flag
wpath.reset(['.gitignore'])
print(wpath.workspace())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wpath-0.1.1.tar.gz
(10.1 kB
view hashes)
Built Distributions
wpath-0.1.1-py3.9.egg
(134.6 kB
view hashes)
wpath-0.1.1-py2.py3-none-any.whl
(69.1 kB
view hashes)
Close
Hashes for wpath-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aad1e79bdbcefdc56027f11efc74e6e3ce2333c1aa4eff617108ea15c517fbb |
|
MD5 | 13171edbd8d3c08933d95b3aff2f87f8 |
|
BLAKE2b-256 | 5d027597294a29dc8a6277c15d92a476883f1b8fd588253e896e62e38b620720 |