mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-31 13:54:31 +00:00
Attempt to fix blackjack rendering tests (#2565)
* Consistently use os.path.join * Update setup.py Try to fix tests again
This commit is contained in:
committed by
GitHub
parent
95d649fdec
commit
186934562f
@@ -153,12 +153,12 @@ class BlackjackEnv(gym.Env):
|
||||
|
||||
def get_image(path):
|
||||
cwd = os.path.dirname(__file__)
|
||||
image = pygame.image.load(cwd + "/" + path)
|
||||
image = pygame.image.load(os.path.join(cwd, path))
|
||||
return image
|
||||
|
||||
def get_font(path, size):
|
||||
cwd = os.path.dirname(__file__)
|
||||
font = pygame.font.Font((cwd + "/" + path), size)
|
||||
font = pygame.font.Font(os.path.join(cwd, path), size)
|
||||
return font
|
||||
|
||||
small_font = get_font(
|
||||
|
Reference in New Issue
Block a user