Esempio n. 1
0
 def run(self):
     for source in walk_dir(self.staticdir):
         path = source.replace(ns.storage.projectdir, '').lstrip('/')
         if sys.platform.startswith('win'):
             path = path.lstrip('\\')
         dest = os.path.join(self.deploydir, path)
         copy_to(source, dest)
Esempio n. 2
0
 def run(self):
     for source in ns.storage.files:
         path = source.replace(self.postdir, '').lstrip('/')
         if sys.platform.startswith('win'):
             path = path.lstrip('\\')
         dest = os.path.join(self.deploydir, path)
         copy_to(source, dest)
Esempio n. 3
0
 def run(self):
     for source in namespace.allfiles:
         path = source.replace(self.postdir, '').lstrip('/')
         dest = os.path.join(self.deploydir, path)
         copy_to(source, dest)
Esempio n. 4
0
 def run(self):
     for source in _walk(self.staticdir):
         path = source.replace(namespace.projectdir, '').lstrip('/')
         dest = os.path.join(self.deploydir, path)
         copy_to(source, dest)