fix import issue that happened at setup.py import time

This commit is contained in:
Thomas Waldmann 2011-06-26 16:21:54 +02:00
parent b34a7ff856
commit f02c207e19
1 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,14 @@ jQuery package
from os.path import join, dirname
from xstatic.main import XStatic
try:
from xstatic.main import XStatic
except ImportError:
class XStatic(object):
"""
just a dummy for the time when setup.py is running and
for the case that xstatic is not already installed.
"""
class JQuery(XStatic):
name = 'jquery' # short, all lowercase name