Add env variables arguments to flask app

- NO_SUBPROCESS to fake subprocesses calls
- APP_ROOT to use the app outside of Docker
This commit is contained in:
augustin64
2024-04-12 15:55:14 +02:00
parent d6988c03b4
commit db6fa9b6b0
4 changed files with 58 additions and 42 deletions

View File

@ -11,11 +11,11 @@ class Driver:
self.mobile_driver = mobile_driver
def switch_to_driver(self, driver: str):
match driver:
case "pc" | "PC" | "Pc":
match driver.lower():
case "pc":
self.driver = self.pc_driver
case "mobile" | "Mobile":
case "mobile":
self.driver = self.mobile_driver
case _: