From 2ba781660dda36f7e5863c2b33e51ffdc4c3d881 Mon Sep 17 00:00:00 2001 From: Storm dragon Date: Sat, 26 Mar 2016 12:14:01 -0400 Subject: [PATCH] More neat stuff added. --- numnastics/storm_games.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/numnastics/storm_games.py b/numnastics/storm_games.py index 38fa053..74e98ea 100755 --- a/numnastics/storm_games.py +++ b/numnastics/storm_games.py @@ -9,6 +9,7 @@ from inspect import isfunction from xdg import BaseDirectory import pygame import random +import requests import speechd import time @@ -25,8 +26,10 @@ def exit_game(): def initialize_gui(gameTitle): # Check for, and possibly create, storm-games path global HOME + global gamePath HOME = BaseDirectory.xdg_config_home + "/storm-games" - if not os.path.exists(HOME): os.makedirs(HOME) + gamePath = HOME + "/" + str.lower(str.replace(gameTitle, " ", "-")) + if not os.path.exists(gamePath): os.makedirs(gamePath) # Seed the random generator to the clock random.seed() # Set game's name