summaryrefslogtreecommitdiff
path: root/AllAboutData
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@gmail.com>2022-03-18 00:44:43 +0200
committerRasmus Luha <rasmus.luha@gmail.com>2022-03-18 00:44:43 +0200
commit7e99f95da0fc82f77591268371ff2f68bccdf3b5 (patch)
tree97714458e931e989caac5f5048b7add7c20f7be6 /AllAboutData
parent1f46b3a7c86b77c5931a97a235bdf2e9fa71c960 (diff)
minor comment fixes
Diffstat (limited to 'AllAboutData')
-rw-r--r--AllAboutData/getData.py2
-rw-r--r--AllAboutData/utils.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/AllAboutData/getData.py b/AllAboutData/getData.py
index 5bf8367..61b213c 100644
--- a/AllAboutData/getData.py
+++ b/AllAboutData/getData.py
@@ -32,7 +32,7 @@ headers = {
# Createing file name variables to store data in
if utils.whichOs() == "windows":
teamsFile = "Data/NBAteams.csv"
- playersDir = "Data\Players\\"
+ playersDir = "Data\\Players\\"
else:
teamsFile = "Data/NBAteams.csv"
playersDir = "Data/Players/"
diff --git a/AllAboutData/utils.py b/AllAboutData/utils.py
index d5f36cf..af25735 100644
--- a/AllAboutData/utils.py
+++ b/AllAboutData/utils.py
@@ -5,7 +5,7 @@ import sys
def whichOs():
''' Returns "windows" if used os is windows. If not, returns "good" '''
- if sys.platform == "win32":
+ if sys.platform == "win32":
return "windows"
else:
return "good"
@@ -14,7 +14,7 @@ def deleteDataDir():
''' Removes Data directory from working directroy '''
if whichOs() == "windows":
- os.system("rmdir \s Data")
+ os.system("rmdir \\s Data")
else:
os.system("rm -r Data")
@@ -23,7 +23,7 @@ def addDataDir():
''' Adds data directory from working directroy '''
if whichOs() == "windows":
- os.system("mkdir Data\Players")
+ os.system("mkdir Data\\Players")
else:
os.system("mkdir -p Data/Players")
print("Created new empty Data directory")