trim unnecessary code from os specific section
This commit is contained in:
parent
4fb34e1515
commit
3e9c89fb02
@ -9,7 +9,6 @@ from pathlib import Path
|
|||||||
|
|
||||||
|
|
||||||
#define some functions ahead of time
|
#define some functions ahead of time
|
||||||
|
|
||||||
def delete_directory(directory):
|
def delete_directory(directory):
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(str(directory))
|
shutil.rmtree(str(directory))
|
||||||
@ -73,7 +72,7 @@ global modfolder
|
|||||||
|
|
||||||
if platform.system() == "Linux":
|
if platform.system() == "Linux":
|
||||||
print("Operating system detected: Linux")
|
print("Operating system detected: Linux")
|
||||||
os.chdir(homedir + '/.minecraft')
|
os.chdir('/.minecraft')
|
||||||
mcfolder = Path.cwd()
|
mcfolder = Path.cwd()
|
||||||
modfolder = mcfolder + '/mods'
|
modfolder = mcfolder + '/mods'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user