Fix from tim_abell to make build.py callable from another function,
(Closes #2468) git-svn-id: http://svn.openlayers.org/trunk/openlayers@10664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -4,6 +4,7 @@ import sys
|
|||||||
sys.path.append("../tools")
|
sys.path.append("../tools")
|
||||||
import mergejs
|
import mergejs
|
||||||
|
|
||||||
|
def build():
|
||||||
have_compressor = None
|
have_compressor = None
|
||||||
try:
|
try:
|
||||||
import jsmin
|
import jsmin
|
||||||
@@ -48,3 +49,6 @@ print "Writing to %s." % outputFilename
|
|||||||
file(outputFilename, "w").write(minimized)
|
file(outputFilename, "w").write(minimized)
|
||||||
|
|
||||||
print "Done."
|
print "Done."
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
build()
|
||||||
Reference in New Issue
Block a user