We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a606656 commit ba869c4Copy full SHA for ba869c4
1 file changed
client/more_examples/pygame/tictactoe_pygame.py
@@ -29,6 +29,7 @@
29
copies or substantial portions of the Software.
30
"""
31
32
+import os
33
import pygame
34
import threading
35
@@ -63,7 +64,8 @@ def __init__(self, table_size):
63
64
self.FPS = pygame.time.Clock()
65
66
def _load_mark(self, file_name):
- img = pygame.image.load(file_name)
67
+ path = os.path.dirname(__file__) + '/'
68
+ img = pygame.image.load(path + file_name)
69
return pygame.transform.scale(img, (self.cell_size, self.cell_size))
70
71
# draws table representation
0 commit comments