Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: da7c086660
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.609 kb
"""
peek
~~~~
:copyright: 2012 DISQUS.
:license: Apache License 2.0, see LICENSE for more details.
"""
import runpy
import os
PKG = __name__
try:
run_globals = runpy.run_module(PKG, run_name='__main__', alter_sys=True)
executed = os.path.splitext(os.path.basename(run_globals['__file__']))[0]
if executed != '__main__': # For Python 2.5 compatibility
raise ImportError(
'Incorrectly executed %s instead of __main__' % executed
)
except ImportError: # For Python 2.6 compatibility
runpy.run_module('%s.__main__' % PKG, run_name='__main__', alter_sys=True)
Jump to Line
Something went wrong with that request. Please try again.