Skip to main content

Easily add common paths to sys.path

Project description


PyPI PyPI - Python Version PyPI - License

Build Status Dependency Status Code Climate Code Climate Test Coverage

SysPath is a package to easily set common paths into sys.path. Instead 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 sys.path:

import syspath
# or
from syspath import current_path

To append the current file's parent directory to sys.path:

import syspath
# or
from syspath import parent_path

To append the current file's git repository root to sys.path:

import syspath
# 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 develop
pip install -r requirements-test.txt
mypy . --strict
coverage run -m unittest
coverage report -m


  1. Update
  2. Update syspath/
  3. Commit, tag with the version number, and push

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

syspath-3.0.1.tar.gz (6.9 kB view hashes)

Uploaded source

Built Distribution

syspath-3.0.1-py3-none-any.whl (7.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page