Buckets:
| import os | |
| TOOLKIT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
| CONFIG_ROOT = os.path.join(TOOLKIT_ROOT, 'config') | |
| KEYMAPS_ROOT = os.path.join(TOOLKIT_ROOT, "toolkit", "keymaps") | |
| ORIG_CONFIGS_ROOT = os.path.join(TOOLKIT_ROOT, "toolkit", "orig_configs") | |
| DIFFUSERS_CONFIGS_ROOT = os.path.join(TOOLKIT_ROOT, "toolkit", "diffusers_configs") | |
| COMFY_MODELS_PATH = None | |
| # check if ENV variable is set | |
| if 'MODELS_PATH' in os.environ and os.environ['MODELS_PATH'].strip() != "": | |
| MODELS_PATH = os.environ['MODELS_PATH'] | |
| else: | |
| MODELS_PATH = os.path.join(TOOLKIT_ROOT, "models") | |
| def get_path(path): | |
| # we allow absolute paths, but if it is not absolute, we assume it is relative to the toolkit root | |
| if not os.path.isabs(path): | |
| path = os.path.join(TOOLKIT_ROOT, path) | |
| return path | |
Xet Storage Details
- Size:
- 818 Bytes
- Xet hash:
- 3d81410fa8b30333386b1d17f73c6c5617d10f50d9d8e1d50a50f591f827868c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.