mirror of
https://github.com/brandon-rozek/wordguess
synced 2025-03-21 06:53:21 +00:00
Made paths relative to game server folder
This commit is contained in:
parent
35a18960cd
commit
dba3213855
1 changed files with 5 additions and 2 deletions
|
@ -6,10 +6,13 @@ Contains common data structures
|
|||
between WordGuess client and server
|
||||
"""
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
|
||||
SERVER_FOLDER = Path(__file__).parent.absolute()
|
||||
|
||||
class WordGuess:
|
||||
RESULTS_LOCATION = "/home/rozek/repo/wordGuess/results.db"
|
||||
ADDRESS = "/home/rozek/wordGuess/game.sock"
|
||||
RESULTS_LOCATION = f"{SERVER_FOLDER}/results.db"
|
||||
ADDRESS = f"{SERVER_FOLDER}/game.sock"
|
||||
|
||||
@dataclass
|
||||
class GuessMessage:
|
||||
|
|
Loading…
Reference in a new issue