From c039a34068f240a3bc37bd2952dc82ca60614059 Mon Sep 17 00:00:00 2001 From: IceArmy Date: Sat, 17 Sep 2011 22:35:19 -0700 Subject: [PATCH] Add plugin hook to __init__ This paves the way for a plugin providing a Python API --- python/pyphantomjs/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/pyphantomjs/__init__.py b/python/pyphantomjs/__init__.py index 84d2b470..91e51ca4 100644 --- a/python/pyphantomjs/__init__.py +++ b/python/pyphantomjs/__init__.py @@ -17,6 +17,14 @@ along with this program. If not, see . ''' +__all__ = ['__version_info__', '__version__'] + +from plugincontroller import do_action + + __version_info__ = (1, 3, 0, 'dev') __version__ = '.'.join(map(str, __version_info__)) + + +do_action('__init__')