Skip to content

Commit

Permalink
Add (if existing) games and last_game pgn file sync via dropbox at start
Browse files Browse the repository at this point in the history
Make sure using most current pgn games and last_game files (in case multiple PicoChess systems  are used at the same time) for dropbox syncing
  • Loading branch information
tosca07 authored Jun 7, 2024
1 parent b26e339 commit 4a837b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pgn.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ def _process_message(self, message):
self.old_engine_elo = self.engine_elo
if "engine_elo" in message.info:
self.engine_elo = message.info["engine_elo"]
try:
subprocess.run(['python3', '/home/pi/drupebox/drupebox.py'])
except FileNotFoundError:
pass

elif isinstance(message, Message.LEVEL):
self.level_text = message.level_text
Expand Down

0 comments on commit 4a837b0

Please sign in to comment.