Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #91 from fedden/feature/update-save-path
Browse files Browse the repository at this point in the history
write to same place each time
  • Loading branch information
fedden authored May 19, 2020
2 parents 5f52288 + 6b07a1e commit c4eb048
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pluribus/terminal/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
class UserResults:
""""""

def __init__(self, file_path: str = "results.yaml"):
def __init__(self):
""""""
self._file_path = file_path
save_dir = os.path.expanduser("~/.poker")
os.makedirs(save_dir, exist_ok=True)
self._file_path = os.path.join(save_dir, "results.yaml")
try:
with open(self._file_path, "r") as stream:
self._results: Dict[str, Any] = yaml.safe_load(stream=stream)
Expand Down

0 comments on commit c4eb048

Please sign in to comment.