fix import issue that happened at setup.py import time
This commit is contained in:
parent
b34a7ff856
commit
f02c207e19
|
@ -4,7 +4,14 @@ jQuery package
|
||||||
|
|
||||||
from os.path import join, dirname
|
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):
|
class JQuery(XStatic):
|
||||||
name = 'jquery' # short, all lowercase name
|
name = 'jquery' # short, all lowercase name
|
||||||
|
|
Loading…
Reference in New Issue