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 hashes)