Skip to content

Commit

Permalink
robot_failover: fix config path
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Sep 25, 2024
1 parent 51cf8d4 commit d968016
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion robot_failover.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@
from base64 import b64encode
from time import sleep

CONFIG_PATH = os.path.join(os.path.abspath(
CONFIG_PATH_DEV = os.path.join(os.path.abspath(
os.path.dirname(__file__)), "config.json")

CONFIG_PATH = os.path.join(os.path.abspath(
"/etc/robot-failover"), "config.json")

if os.path.isfile(CONFIG_PATH_DEV):
CONFIG_PATH = CONFIG_PATH_DEV

DEBUG = sys.stdout.isatty()
FORCE_DEBUG = 'FORCE_DEBUG_FAILOVER' in os.environ

Expand Down

0 comments on commit d968016

Please sign in to comment.