Skip to main content

get python root directory easily

Project description

Find root directory simply

You can find the root directory intuitively, quickly and simply.

Usage

  1. Install by pip install rootdir
  2. Add __root__.py to your root path.
  3. import rootdir
  4. use as rootdit.root_dir(__file__)

example1

If you need root directory, you could get it simply.

import rootdir

if __name__ == "__main__":
    print(rootdir.root_dir(__file__))

example2

If you've found a directory for Python dependencies, you can solve it all at once with the following function.

import rootdir
rootdir.root_dependency(__file__)

Now you can import Python dependencies from root directory.

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

rootdir-0.1.2.post7.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rootdir-0.1.2.post7-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file rootdir-0.1.2.post7.tar.gz.

File metadata

  • Download URL: rootdir-0.1.2.post7.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for rootdir-0.1.2.post7.tar.gz
Algorithm Hash digest
SHA256 7b8795b896cbedf7b7a02e38e6cfda32177f0051c33e9f9b3ca461a6a1d8195d
MD5 b262094a0e01ef8119a73c6b2f4e2190
BLAKE2b-256 9954f22d3244aa907b4646c4f446206a675ac04a0de7beadc02b40fb41383396

See more details on using hashes here.

File details

Details for the file rootdir-0.1.2.post7-py3-none-any.whl.

File metadata

  • Download URL: rootdir-0.1.2.post7-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for rootdir-0.1.2.post7-py3-none-any.whl
Algorithm Hash digest
SHA256 61c512f1914fd23f300b58db38ac560edb0ebefd6165899cdf8a89c27cf28a6c
MD5 28b18dd118dec04b2e536a2ec0b0e35e
BLAKE2b-256 41051147877c2d9d26e0db75f6ec54331c1d1e390cb4af4f0411a512e42d3426

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page