summaryrefslogtreecommitdiff
path: root/osSpecific.py
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@gmail.com>2022-03-16 03:40:15 +0200
committerRasmus Luha <rasmus.luha@gmail.com>2022-03-16 03:40:15 +0200
commit8fbcafc6fc2fe274537b297e6eb2473a68150255 (patch)
treee0759e0b226e52145bc24247d3e8ec08de387b91 /osSpecific.py
parentb73753d56bbcd28732d283cc3c2aa65fd88f99bf (diff)
minor fixes
Diffstat (limited to 'osSpecific.py')
-rw-r--r--osSpecific.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/osSpecific.py b/osSpecific.py
deleted file mode 100644
index 7caf664..0000000
--- a/osSpecific.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import os
-import sys
-
-# terminal commands, which are unfortunately os-specific
-
-def whichOs():
- if sys.platform == "win32":
- return "windows"
- else:
- return "good" # ...right?
-
-def deleteDataDir():
- if whichOs() == "windows":
- os.system("rmdir \s Data")
- else:
- os.system("rm -r Data")
-
-
-def addDataDir():
- if whichOs() == "windows":
- os.system("mkdir Data\Players")
- else:
- os.system("mkdir -p Data/Players")
- print("Created new empty Data directory")
-