mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-04 02:58:10 +10:00
19 lines
386 B
Python
19 lines
386 B
Python
import json
|
|
import os
|
|
from glob import glob
|
|
|
|
|
|
def get_integration_path():
|
|
files = []
|
|
for dir, _, _ in os.walk("/tmp/addition"):
|
|
files.extend(glob(os.path.join(dir, "*manifest.json")))
|
|
|
|
if len(files) != 1:
|
|
print("No manifest")
|
|
exit(1)
|
|
return files.pop().replace("/manifest.json", "")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
print(get_integration_path())
|