gau1991 10 years ago
parent
commit
b5f04c1912
  1. 11
      ee/cli/main.py
  2. 2
      setup.py

11
ee/cli/main.py

@ -1,4 +1,13 @@
"""EasyEngine main application entry point."""
import sys
# this has to happen after you import sys, but before you import anything
# from Cement "source: https://github.com/datafolklabs/cement/issues/290"
if '--debug' in sys.argv:
sys.argv.remove('--debug')
TOGGLE_DEBUG = True
else:
TOGGLE_DEBUG = False
from cement.core import foundation
from cement.utils.misc import init_defaults
@ -42,6 +51,8 @@ class EEApp(foundation.CementApp):
# default output handler
output_handler = 'mustache'
debug = TOGGLE_DEBUG
class EETestApp(EEApp):
"""A test app that is better suited for testing."""

2
setup.py

@ -45,7 +45,7 @@ setup(name='ee',
# "nose",
# "coverage",
# Required to function
'cement>=2.4',
'cement == 2.4',
'pystache',
'python-apt',
'pynginxconfig',

Loading…
Cancel
Save