Merge pull request #2281 from xonsh/events_docs

A few doc fixes
This commit is contained in:
Anthony Scopatz 2017-02-28 15:39:42 -05:00 committed by GitHub
commit 79e303856b
3 changed files with 10 additions and 1 deletions

View file

@ -11,16 +11,24 @@ import os
import sys
import builtins
import inspect
import importlib
os.environ['XONSH_DEBUG'] = '1'
from xonsh import __version__ as XONSH_VERSION
from xonsh.environ import DEFAULT_DOCS, Env
from xonsh.xontribs import xontrib_metadata
from xonsh.events import events
from xonsh import main
from xonsh.commands_cache import CommandsCache
spec = importlib.util.find_spec('prompt_toolkit')
if spec is not None:
# hacky runaround to import PTK-specific events
builtins.__xonsh_env__ = Env()
from xonsh.ptk.shell import events
else:
from xonsh.events import events
sys.path.insert(0, os.path.dirname(__file__))
def setup(sphinx):

View file

@ -1,3 +1,4 @@
cloud_sptheme
numpydoc==0.5
Sphinx
prompt_toolkit