describe: add some minimal documentation

This commit is contained in:
Danny Robson 2019-07-14 13:29:02 +10:00
parent 9db9212ed7
commit 9ad72b06d4

View File

@ -1,14 +1,23 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
"""
This script prints some basic recipe information useful for debugging the
database.
"""
import satisfactory import satisfactory
import os import os
if __name__ == '__main__': if __name__ == '__main__':
def main():
root = os.path.dirname(__file__) root = os.path.dirname(__file__)
recipe_root = os.path.join(root, 'data', 'recipes') recipe_root = os.path.join(root, 'data', 'recipes')
cookbook = satisfactory.Cookbook(recipe_root) cookbook = satisfactory.Cookbook(recipe_root)
print("Resources:")
for i in cookbook.resources(): for i in cookbook.resources():
print(i) print(i)
main()