Added rescue to Poetry scripts

This commit is contained in:
Joel Collins 2020-11-12 15:18:37 +00:00
parent 00d30d8e85
commit 1f0b90cff1
2 changed files with 6 additions and 3 deletions

View file

@ -46,9 +46,7 @@ else:
logger.setLevel(logging.WARNING)
if __name__ == "__main__":
spoof = False
def main():
print()
print(bcolors.HEADER + "OpenFlexure Rescue" + bcolors.ENDC)
print()
@ -88,3 +86,7 @@ if __name__ == "__main__":
print()
for err in error_sources:
print(err.message)
if __name__ == "__main__":
main()

View file

@ -51,6 +51,7 @@ rpi = ["RPi.GPIO"]
[tool.poetry.scripts]
build_static = 'openflexure_microscope.install:build'
rescue = 'openflexure_microscope.rescue.auto:main'
[tool.poetry.dev-dependencies]
pynpm = "^0.1.2"