Add package setup test
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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()
|
||||
print(f'Show this value : {name}')
|
||||
Reference in New Issue
Block a user