poikilos
9 years ago
committed by
Jacob Gustafson
1 changed files with 18 additions and 10 deletions
@ -1,13 +1,21 @@ |
|||||
import os |
import os |
||||
import datetime |
import datetime |
||||
|
|
||||
from minetestinfo import * |
from minetestinfo import * |
||||
#os_name = "*x" |
if os.path.isdir(minetestinfo.get_var("profile_minetest_path")): |
||||
#debug_name = "debug.txt" |
print(__file__+"...") |
||||
#debug_path = "/usr/share/minetest/worlds" |
debug_txt_path = os.path.join(minetestinfo.get_var("profile_minetest_path"), "debug.txt") |
||||
#world_name = None |
debug_archived_folder_name = "debug_archived" |
||||
#if os.sep=="\\": |
debug_archived_folder_path = os.path.join(minetestinfo.get_var("profile_minetest_path"), debug_archived_folder_name) |
||||
# os_name = "windows" |
if os.path.isfile(debug_txt_path): |
||||
|
print("NOT YET IMPLEMENTED") |
||||
#print("os detected: "+os_name) |
else: |
||||
|
print("There is no '"+debug_txt_path+"'") |
||||
|
if os.sep=="\\": |
||||
|
print(" (maybe it was already archived after last server activity,") |
||||
|
print(" or you are not running minetestserver and this script") |
||||
|
print(" does not apply to you).") |
||||
|
else: |
||||
|
print(" (maybe it was already archived after last server activity).") |
||||
|
else: |
||||
|
print("Missing folder '"+profile_minetest_path+"'.") |
||||
|
print("The folder should be your .minetest folder or other folder containing 'debug.txt' (at least '"+debug_archived_folder_name+"' will be there if "+__file__+" ran successfully before).") |
||||
|
Loading…
Reference in new issue