Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo 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)