Implemented main basically
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
import os
|
||||
|
||||
|
||||
@@ -7,4 +8,7 @@ class Config:
|
||||
SYNC_DELAY = float(os.environ.get("SYNC_DELAY", 1.0))
|
||||
REDIS_URL = os.environ["REDIS_URL"]
|
||||
SYNC_TIMEOUT = os.environ.get("SYNC_TIMEOUT", None) # Wait infinity by default
|
||||
ROBOT_ADDRESS = os.environ.get("ROBOT_ADDRESS")
|
||||
ROBOT_ADDRESS = os.environ.get("ROBOT_ADDRESS")
|
||||
PROGRAM_URL = os.environ["PROGRAM_URL"]
|
||||
DRY_RUN = ('--dry-run' in sys.argv) or bool(os.environ.get("DRY_RUN", False))
|
||||
DEBUG = ('--debug' in sys.argv) or bool(os.environ.get("DEBUG", False))
|
||||
|
||||
Reference in New Issue
Block a user