# Path: gap/utils/setup.py
# def fix_sys_path(app_src=None):
#     global _PATH_FIXED
#     if not _PATH_FIXED:
#         gae_path = find_gae_runtime_path()
#         sys.path.insert(0, gae_path)
#         # sys.path.insert(0, join(gae_path, 'lib'))
#         import dev_appserver
#         dev_appserver.fix_sys_path()
#         _PATH_FIXED = 1
# 
#     if app_src and _PATH_FIXED < 2:
#         sys.path.insert(0, app_src)
#         _PATH_FIXED = 2


import sys
import os
import logging
import re
    import nose
    import webtest
            import pip
            import nose
            import webtest
from copy import copy
from os.path import dirname, realpath, join
from gap.utils.setup import fix_sys_path
    from nosegae import NoseGAE
            from nosegae import NoseGAE
from nose.config import Config
from nose.plugins import DefaultPluginManager
    from rednose import RedNose
#!/usr/bin/env python

'''
simple shortcut for running nosetests via python
replacement for *.bat or *.sh wrappers
'''

extra_plugins=[]


app_path = join(dirname(dirname(realpath(__file__))), 'src')

# Path: gap/utils/setup.py
# def fix_sys_path(app_src=None):
#     global _PATH_FIXED
#     if not _PATH_FIXED:
#         gae_path = find_gae_runtime_path()
#         sys.path.insert(0, gae_path)
#         # sys.path.insert(0, join(gae_path, 'lib'))
#         import dev_appserver
#         dev_appserver.fix_sys_path()
#         _PATH_FIXED = 1
# 
#     if app_src and _PATH_FIXED < 2:
#         sys.path.insert(0, app_src)
#         _PATH_FIXED = 2


# Path: gap/templates/tests/run_tests.py
import sys
import os
import logging
import re
    import nose
    import webtest
            import pip
            import nose
            import webtest
from copy import copy
from os.path import dirname, realpath, join
from gap.utils.setup import fix_sys_path
    from nosegae import NoseGAE
            from nosegae import NoseGAE
from nose.config import Config
from nose.plugins import DefaultPluginManager
    from rednose import RedNose

#!/usr/bin/env python

'''
simple shortcut for running nosetests via python
replacement for *.bat or *.sh wrappers
'''

extra_plugins=[]


app_path = join(dirname(dirname(realpath(__file__))), 'src')

fix_sys_path(app_path)