Append '..' to path setting.
Project description
path_parent
Append ‘..’ to path setting.
This package append string ‘..’ to the path setting when being imported.
Install
pip install path_parent
Usage
import path_parent.p # append '..' to path setting;
import path_parent.pp # append '../..' to path setting;
import path_parent.ppp # append '../../..' to path setting;
import path_parent # nothing happen;
path_parent.clear("../..") # remove only '../..';
path_parent.clear("..\..\..") # nothing removed, not backslash;
path_parent.clear() # remove all '..', '../..' and '../../..';
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
path_parent-1.0.3.tar.gz
(1.4 kB
view details)
File details
Details for the file path_parent-1.0.3.tar.gz
.
File metadata
- Download URL: path_parent-1.0.3.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24a499c8cd13ce3c48df6cf8db2c9b514ecbfc1f650e703b99c9eaef428357a8 |
|
MD5 | f7963824d10cc7ffcda3b5d4a6d9f2bd |
|
BLAKE2b-256 | 5cf793fc116aa10ee4e3d2589a763438d6872f235e5b81fc41ab87376d33e39a |