All imports are relative to the presence of the marker file
Project description
Usage:
-
Create a file with extension .marker in your base directory.
-
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
-
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"]
-
Provides a global dictionary called markerpath_global key "logger" that holds the python logger object.
-
Provides a inject_logger_member that will inject the self.logger ( or any name you chose ). This member can be used in the init
-
The user can initialize the global markerpath_global with markerpath_global_initialize
-
The config value is parsed if passed ar an argument --config or in defaults like markerpath_confg.xml config/markerpath_config.xml
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e71f91157048e332d6066fed1a40575c62f1c7846d856e092058567def3fce7
|
|
| MD5 |
8580f9b438df8a058b053283e7350b68
|
|
| BLAKE2b-256 |
5f2364bd12290b56113b86fce1614d1c2cdd58edc8611faf4b9e8fdd5f69e941
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89ded0ea1566efa0e03c2f4d542be407bc6de350f2013fa0c334edacad5c1c52
|
|
| MD5 |
fc676f3ac45f5f20b732d6f076dd8dc9
|
|
| BLAKE2b-256 |
598b02a346ec558dbed69e5b54a6d7369177fd2f4374e841e75df08b96b4787d
|