def static_with_version(path):
 path_re = re.compile('(.*)/([^/]*$)')
 return re.sub(path_re, ('\\1/%s/\\2' % cms.__version__), path)

def static_with_version ( path ) : path_re = re . compile ( '(.*)/([^/]*$)' ) return re . sub ( path_re , ( '\\1/%s/\\2' % cms . __version__ ) , path )
changes provided path from path/to/filename .