describe: add some minimal documentation
This commit is contained in:
parent
9db9212ed7
commit
9ad72b06d4
19
describe.py
19
describe.py
@ -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__':
|
||||||
root = os.path.dirname(__file__)
|
def main():
|
||||||
recipe_root = os.path.join(root, 'data', 'recipes')
|
root = os.path.dirname(__file__)
|
||||||
cookbook = satisfactory.Cookbook(recipe_root)
|
recipe_root = os.path.join(root, 'data', 'recipes')
|
||||||
|
cookbook = satisfactory.Cookbook(recipe_root)
|
||||||
|
|
||||||
for i in cookbook.resources():
|
print("Resources:")
|
||||||
print(i)
|
for i in cookbook.resources():
|
||||||
|
print(i)
|
||||||
|
|
||||||
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user