Skip to content

Commit

Permalink
Add flask wdb project to replace werkzeug debugger with a hack
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Jan 13, 2017
1 parent 480d42f commit ed115f1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions flask-wdb/flask-wdb.pth
@@ -0,0 +1 @@
import wdb; from wdb.ext import WdbMiddleware; from werkzeug import debug; debug.DebuggedApplication = WdbMiddleware # This is so much a hack
18 changes: 18 additions & 0 deletions flask-wdb/setup.py
@@ -0,0 +1,18 @@
import sys
import os
from setuptools import setup
from distutils.sysconfig import get_python_lib

site_packages_path = get_python_lib().replace(sys.prefix + os.path.sep, '')

setup(
name="flask-wdb",
version='0.1.0',
author="Florian Mounier @ kozea",
author_email="florian.mounier@kozea.fr",
url="http://github.com/Kozea/wdb",
license='GPLv3',
install_requires=['wdb', 'werkzeug'],
data_files=[(site_packages_path, ['flask-wdb.pth'])],
description="Replace flask werkzeug debugger with wdb."
)

0 comments on commit ed115f1

Please sign in to comment.