aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/__init__.py
diff options
context:
space:
mode:
authorMax Peterson <max@incuna.com>2011-09-06 12:09:12 +0100
committerMax Peterson <max@incuna.com>2011-09-06 12:09:12 +0100
commit0fa698a30787eeb5843d3f63620005fcc97ad909 (patch)
treeed702169f7f465f9d7cbbfcb46b0e1b6f744acc5 /wkhtmltopdf/__init__.py
parent8235681a8e0c018610b3323760a9d930c0011368 (diff)
downloaddjango-wkhtmltopdf-0fa698a30787eeb5843d3f63620005fcc97ad909.tar.gz
django-wkhtmltopdf-0fa698a30787eeb5843d3f63620005fcc97ad909.tar.bz2
django-wkhtmltopdf-0fa698a30787eeb5843d3f63620005fcc97ad909.zip
Fixed init for mkrelease
Diffstat (limited to 'wkhtmltopdf/__init__.py')
-rw-r--r--wkhtmltopdf/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/wkhtmltopdf/__init__.py b/wkhtmltopdf/__init__.py
index f6d2a9d..4fd8e77 100644
--- a/wkhtmltopdf/__init__.py
+++ b/wkhtmltopdf/__init__.py
@@ -1,4 +1,7 @@
-from .utils import *
-__version__ = (0, 1, 1)
+import os
+if 'DJANGO_SETTINGS_MODULE' in os.environ:
+ from .utils import *
+
+__version__ = (0, 1)
def get_version():
return '.'.join(map(str, __version__))