Skip to content

Commit

Permalink
Update device.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrazeiOS authored Aug 26, 2021
1 parent 00479bc commit 79342db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dragontools/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def setup_key_auth(self):
class DeviceManager(object):

def __init__(self):
with open(f'{os.environ["DRAGONBUILD"]}/internal/state.yml') as state:
with open(f'{os.environ["DRAGONDIR"]}/internal/state.yml') as state:
dragon_state = yaml.safe_load(state)

self.dragon_state = dragon_state
Expand All @@ -108,7 +108,7 @@ def __init__(self):
self.current = self.devices[dragon_state['device']['current']]

def savestate(self):
with open(f'{os.environ["DRAGONBUILD"]}/internal/state.yml', 'w') as state:
with open(f'{os.environ["DRAGONDIR"]}/internal/state.yml', 'w') as state:
yaml.dump(self.dragon_state, state)

def add_device(self, device: Device):
Expand Down

0 comments on commit 79342db

Please sign in to comment.