Easily add common paths to sys.path
SysPath is a package to easily set common paths into
of having to do a lot of path manipulation to properly import files, a
file can import from SysPath instead.
pip install syspath
To append the current file's directory to
import syspath syspath.append_current_path() # or from syspath import current_path
To append the current file's parent directory to
import syspath syspath.append_parent_path() # or from syspath import parent_path
To append the current file's git repository root to
import syspath syspath.append_git_root() # or from syspath import git_root
Each of the shortcut modules also provide a
path variable that can be
used to get the path added.
python setup.py develop pip install -r requirements-test.txt flake8 mypy . --strict coverage run -m unittest coverage report -m flake8
- Commit, tag with the version number, and push
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.