/usr/share/pyshared/z3c/autoinclude/api.py is in python-z3c.autoinclude 0.3.5-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import os
DEP_KEY = 'Z3C_AUTOINCLUDE_DEPENDENCIES_DISABLED'
PLUGIN_KEY = 'Z3C_AUTOINCLUDE_PLUGINS_DISABLED'
def dependencies_disabled():
return os.environ.has_key(DEP_KEY)
def disable_dependencies():
os.environ[DEP_KEY] = 'True'
def enable_dependencies():
del os.environ[DEP_KEY]
def plugins_disabled():
return os.environ.has_key(PLUGIN_KEY)
def disable_plugins():
os.environ[PLUGIN_KEY] = 'True'
def enable_dependencies():
del os.environ[PLUGIN_KEY]
|