15 lines
452 B
Python
Executable File
15 lines
452 B
Python
Executable File
#!/usr/bin/env python2
|
|
import os
|
|
import json
|
|
|
|
script_dir = os.path.dirname(os.path.abspath(__file__))
|
|
# Look for assetchains.json in same dir first, then in src/
|
|
json_path = os.path.join(script_dir, 'assetchains.json')
|
|
if not os.path.exists(json_path):
|
|
json_path = os.path.join(script_dir, '..', '..', 'src', 'assetchains.json')
|
|
with open(json_path) as file:
|
|
assetchains = json.load(file)
|
|
|
|
for chain in assetchains:
|
|
print(chain['ac_name'])
|