Skip to main content

All imports are relative to the presence of the marker file

Project description

Usage:

  1. Create a file with extension .marker in your base directory.

  2. Contents of this file an empty file OR lines of path relative to the base directory marked by the marker file. These paths will be appended to sys.path OR add_all_python_paths

  3. In your python file with main anywhere under the base directory. import markerpath

    3.1 This will create a environment variable MARKERPATH=

    3.2 Access this as such import os marker_home=os.environ["MARKERPATH"]

  4. Provides a global dictionary called markerpath_global key "logger" that holds the python logger object.

  5. Provides a inject_logger_member that will inject the self.logger ( or any name you chose ). This member can be used in the init

  6. The user can initialize the global markerpath_global with markerpath_global_initialize

  7. The config value is parsed if passed ar an argument --config or in defaults like markerpath_confg.xml config/markerpath_config.xml

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

markerpath-0.1.17.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

markerpath-0.1.17-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file markerpath-0.1.17.tar.gz.

File metadata

  • Download URL: markerpath-0.1.17.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for markerpath-0.1.17.tar.gz
Algorithm Hash digest
SHA256 7e71f91157048e332d6066fed1a40575c62f1c7846d856e092058567def3fce7
MD5 8580f9b438df8a058b053283e7350b68
BLAKE2b-256 5f2364bd12290b56113b86fce1614d1c2cdd58edc8611faf4b9e8fdd5f69e941

See more details on using hashes here.

File details

Details for the file markerpath-0.1.17-py3-none-any.whl.

File metadata

  • Download URL: markerpath-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for markerpath-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 89ded0ea1566efa0e03c2f4d542be407bc6de350f2013fa0c334edacad5c1c52
MD5 fc676f3ac45f5f20b732d6f076dd8dc9
BLAKE2b-256 598b02a346ec558dbed69e5b54a6d7369177fd2f4374e841e75df08b96b4787d

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