[DEV] add copy image API
This commit is contained in:
parent
a9ea020823
commit
cb71051059
@ -54,6 +54,7 @@ class Module:
|
||||
# sources list:
|
||||
self.src = []
|
||||
# copy files and folders:
|
||||
self.imageToCopy = []
|
||||
self.files = []
|
||||
self.folders = []
|
||||
self.isbuild = False
|
||||
@ -570,11 +571,14 @@ class Module:
|
||||
def add_src_file(self, list):
|
||||
self.append_to_internalList(self.src, list, True)
|
||||
|
||||
def copy_file(self, src, dst):
|
||||
self.files.append([src,dst])
|
||||
def copy_image(self, source, destination='', sizeX=-1, sizeY=-1):
|
||||
self.imageToCopy.append([source, destination, sizeX, sizeY])
|
||||
|
||||
def copy_folder(self, src, dst):
|
||||
self.folders.append([src,dst])
|
||||
def copy_file(self, source, destination=''):
|
||||
self.files.append([source, destination])
|
||||
|
||||
def copy_folder(self, source, destination=''):
|
||||
self.folders.append([source, destination])
|
||||
|
||||
def print_list(self, description, list):
|
||||
if len(list) > 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user