Remove zope __init__.py workaround, not needed for py3.3+.

It causes problems when zope is installed in a read-only location
This commit is contained in:
amfl 2019-04-04 19:08:40 +13:00
parent c873dfea29
commit 308b9c2cdf

View file

@ -1295,18 +1295,6 @@ def check_main_evennia_dependencies():
if error:
sys.exit()
# fix a common zope issue with a missing __init__ file
zope_interface = importlib.import_module("zope.interface")
expected_init_path = os.path.join(
os.path.dirname(os.path.dirname(zope_interface.__file__)), "__init__.py")
if not os.path.exists(expected_init_path):
# add an empty missing __init__.py file to fix the problem
with open(expected_init_path, 'w') as zope_init_file:
zope_init_file.write("")
print("Note: zope_interface.__init__.py not found. This is a known issue with that package."
"\nEvennia auto-created it at {}.".format(
expected_init_path))
# return True/False if error was reported or not
return not error