Spaces:
Paused
Paused
Download devgagan/modules/__init__.py from remainsalways/src: direct link, hf CLI and curl.
- Browser
- Download file 417 Bytes
-
https://huggingface.co/spaces/remainsalways/src/resolve/f83864a6eb81663f871d035b1a9b269d55aca0a4/devgagan/modules/__init__.py
- Command line
-
hf download hf://spaces/remainsalways/src@f83864a6eb81663f871d035b1a9b269d55aca0a4/devgagan/modules/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/remainsalways/src/resolve/f83864a6eb81663f871d035b1a9b269d55aca0a4/devgagan/modules/__init__.py
417 Bytes
| # devggn | |
| import glob | |
| from os.path import basename, dirname, isfile | |
| def __list_all_modules(): | |
| mod_paths = glob.glob(dirname(__file__) + "/*.py") | |
| all_modules = [ | |
| basename(f)[:-3] | |
| for f in mod_paths | |
| if isfile(f) and f.endswith(".py") and not f.endswith("__init__.py") | |
| ] | |
| return all_modules | |
| ALL_MODULES = sorted(__list_all_modules()) | |
| __all__ = ALL_MODULES + ["ALL_MODULES"] | |