Commits

imbolc committed 93eb412

versioning change

  • Participants
  • Parent commits 9472637

Comments (0)

Files changed (2)

File pysi/static.py

 VERSION_CACHE = {}  # {path : version_hash}
 
 
-def static_url(path, caching=None, url_prefix=None):
+def static_url(path, caching=None, prefix=None):
     path = path.lstrip('/')
     if caching is None:
         caching = cfg.STATIC_VERSION_CACHING
-    if url_prefix is None:
-        url_prefix = cfg.STATIC_URL_PREFIX
-    ret = url_prefix + path
+    if prefix is None:
+        prefix = cfg.STATIC_URL_PREFIX
+    ret = '/%s/%s' % (prefix.strip('/'), path)
     version_hash = get_version(path, caching)
     if version_hash:
         ret += "?v=" + version_hash
 import os
 from setuptools import setup
 
-VERSION = '0.9.0'
+VERSION = '0.9.1'
 PACKAGE = 'pysi'
 
 if __name__ == '__main__':