Files
BlenderTemplate/.gitea/package.py
T
stilobiqueandstilobique 5d17ec9da1 Dev 5.2.1 (#1)
Reviewed-on: #1
Co-authored-by: aurelien.vaillant <availlant@miraculouscorp.com>
Co-committed-by: aurelien.vaillant <availlant@miraculouscorp.com>
2026-07-08 19:21:14 +02:00

16 lines
324 B
Python

import glob
import os
def get_folder_name():
addon = glob.glob(os.getcwd() + "/*/__init__.py", recursive=True)
return os.path.basename(os.path.dirname(addon[0]))
if __name__ == "__main__":
name = get_folder_name()
# Keep the print value, it's request to output a string value available
print(name)