#("Passing two --refresh or -y flags forces pacman to refresh
# all package lists even if they are considered to be up to
# date.")
print("")
print("")
input("press enter to close...")
input("press enter to close...")
exit(1)
exit(1)
importos
importshutil
importsys
fromforwardfilesyncimport*
profile_path=None
profile_path=None
if'HOME'inos.environ:# if os.name=="windows":
if'HOME'inos.environ:# if os.name=="windows":
profile_path=os.environ['HOME']
profile_path=os.environ['HOME']
@ -48,7 +52,6 @@ else:
profile_path=os.environ['USERPROFILE']
profile_path=os.environ['USERPROFILE']
ifnotos.path.isdir(profile_path):
ifnotos.path.isdir(profile_path):
print("")
print("")
print("Failed to get existing home path--tried HOME & USERPROFILE")
print("Failed to get existing home path--tried HOME & USERPROFILE")
@ -89,7 +92,10 @@ if not os.path.isdir(USR_SHARE_MINETEST):
USR_SHARE_MINETEST="/usr/share/minetest"
USR_SHARE_MINETEST="/usr/share/minetest"
ifnotos.path.isdir(USR_SHARE_MINETEST):
ifnotos.path.isdir(USR_SHARE_MINETEST):
print("Minetest could not be found in any known location. Try installing minetest or compiling from source or editing value of USR_SHARE_MINETEST in this script. Script ended early.")
print("Minetest could not be found in any known location."
" Try installing minetest or compiling from source or"
" editing value of USR_SHARE_MINETEST in this script."
" The script ended early.")
input("press enter to close...")
input("press enter to close...")
exit(3)
exit(3)
@ -118,7 +124,7 @@ try:
# DOES update minetest_game, but does NOT delete extra mods:
# DOES update minetest_game, but does NOT delete extra mods:
update_tree(folder_path,MT_MYGAME_DIR)
update_tree(folder_path,MT_MYGAME_DIR)
print("Updated \""+MT_MYGAME_DIR+"\"...")
print("Updated \""+MT_MYGAME_DIR+"\"...")
except:
exceptPermissionError:
print(str(sys.exc_info()))
print(str(sys.exc_info()))
print("")
print("")
print("You must run "+__file__+" as a user that can write to "
print("You must run "+__file__+" as a user that can write to "
print("Nothing to do (minetest+minetestserver has 0 known files on system--you apparently already uninstalled the local version that was installed using 'sudo make install')")
print("Nothing to do (minetest+minetestserver has 0 known files"
" on system--you apparently already uninstalled the local"
" version that was installed using 'sudo make install')")
else:
else:
print("OK [finished uninstalling all installed files]")
print("OK [finished uninstalling all installed files]")