2019-04-27 13:56:46 +10:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2019-07-14 13:29:02 +10:00
|
|
|
"""
|
|
|
|
This script prints some basic recipe information useful for debugging the
|
|
|
|
database.
|
|
|
|
"""
|
|
|
|
|
2019-04-28 11:03:27 +10:00
|
|
|
import satisfactory
|
2019-04-27 13:56:46 +10:00
|
|
|
|
2019-04-28 14:50:11 +10:00
|
|
|
import os
|
2019-04-27 13:56:46 +10:00
|
|
|
|
2019-07-14 13:29:02 +10:00
|
|
|
|
2019-04-27 13:56:46 +10:00
|
|
|
if __name__ == '__main__':
|
2019-07-14 13:29:02 +10:00
|
|
|
def main():
|
|
|
|
root = os.path.dirname(__file__)
|
|
|
|
recipe_root = os.path.join(root, 'data', 'recipes')
|
|
|
|
cookbook = satisfactory.Cookbook(recipe_root)
|
2019-04-27 13:56:46 +10:00
|
|
|
|
2019-07-14 13:29:02 +10:00
|
|
|
print("Resources:")
|
|
|
|
for i in cookbook.resources():
|
|
|
|
print(i)
|
2019-04-27 13:56:46 +10:00
|
|
|
|
2019-07-14 13:29:02 +10:00
|
|
|
main()
|