svgui/pyjs/build.py
changeset 1783 3311eea28d56
parent 1782 5b6ad7a7fd9d
child 1826 91796f408540
equal deleted inserted replaced
1782:5b6ad7a7fd9d 1783:3311eea28d56
     5 import shutil
     5 import shutil
     6 from copy import copy
     6 from copy import copy
     7 from os.path import join, dirname, basename, abspath, split, isfile, isdir
     7 from os.path import join, dirname, basename, abspath, split, isfile, isdir
     8 from optparse import OptionParser
     8 from optparse import OptionParser
     9 import pyjs
     9 import pyjs
       
    10 import time
    10 from cStringIO import StringIO
    11 from cStringIO import StringIO
    11 try:
    12 try:
    12     # Python 2.5 and above
    13     # Python 2.5 and above
    13     from hashlib import md5
    14     from hashlib import md5
    14 except Exception:
    15 except Exception:
   538     d = []
   539     d = []
   539     m = m.split(".")
   540     m = m.split(".")
   540     for i in range(0, len(m)):
   541     for i in range(0, len(m)):
   541         d.append('.'.join(m[:i+1]))
   542         d.append('.'.join(m[:i+1]))
   542     return d
   543     return d
   543 
       
   544 
       
   545 import time
       
   546 
   544 
   547 
   545 
   548 def add_subdeps(deps, mod_name):
   546 def add_subdeps(deps, mod_name):
   549     sd = subdeps(mod_name)
   547     sd = subdeps(mod_name)
   550     if len(sd) == 1:
   548     if len(sd) == 1: