From 9536dc1dd3c16119ac719453894a5385f9983050 Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Wed, 16 Mar 2022 03:51:41 +0200 Subject: restructure the project --- utils/osSpecific.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 utils/osSpecific.py (limited to 'utils') diff --git a/utils/osSpecific.py b/utils/osSpecific.py deleted file mode 100644 index 7caf664..0000000 --- a/utils/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") - -- cgit v1.2.3