Browse Source

Improve the error function. Remove the redundant emeralds mod. Improve the error function.

master
poikilos 3 years ago
parent
commit
84a2363842
  1. 7
      build.py
  2. 7
      utilities/enissue.py

7
build.py

@ -15,9 +15,9 @@ if platform.system() == "Windows":
else: else:
profile = os.environ.get('HOME') profile = os.environ.get('HOME')
def error(msg): # see <https://stackoverflow.com/questions/5574702/how-to-print-to-stderr-in-python>
sys.stderr.write("{}\n".format(msg)) def error(*args, **kwargs):
sys.stderr.flush() print(*args, file=sys.stderr, **kwargs)
try: try:
import mtanalyze import mtanalyze
@ -45,6 +45,7 @@ gamespec['remove_mods'] = [
"facade", # no recipes "facade", # no recipes
"placecraft", # interferes with eating "placecraft", # interferes with eating
"more_chests", # See https://github.com/poikilos/EnlivenMinetest/issues/446 "more_chests", # See https://github.com/poikilos/EnlivenMinetest/issues/446
"emeralds", # See https://github.com/poikilos/EnlivenMinetest/issues/497
] ]
myDir = os.path.dirname(__file__) myDir = os.path.dirname(__file__)
mods_stopgap = os.path.join(myDir, "patches", "mods-stopgap") mods_stopgap = os.path.join(myDir, "patches", "mods-stopgap")

7
utilities/enissue.py

@ -31,9 +31,10 @@ except ImportError:
import urllib import urllib
def error(msg): # see <https://stackoverflow.com/questions/5574702/how-to-print-to-stderr-in-python>
sys.stderr.write("{}\n".format(msg)) def error(*args, **kwargs):
sys.stderr.flush() print(*args, file=sys.stderr, **kwargs)
verbose = False verbose = False

Loading…
Cancel
Save