Import("env") import shutil, os print( "Executing custom step " ) dir = env.GetLaunchDir() source = dir + "/html/" target = dir + "/data/" print( "Copy html-files from " + source + " -> " + target ) os.makedirs(os.path.dirname( target ), exist_ok=True) file = "about.min.htm" #print( "Copy file: " + source + file + "->" + target + file) shutil.copyfile( source + file, target + file ) file = "calibration.min.htm" #print( "Copy file: " + source + file + "->" + target + file) shutil.copyfile( source + file, target + file ) file = "config.min.htm" #print( "Copy file: " + source + file + "->" + target + file) shutil.copyfile( source + file, target + file ) file = "device.min.htm" #print( "Copy file: " + source + file + "->" + target + file) shutil.copyfile( source + file, target + file ) file = "index.min.htm" #print( "Copy file: " + source + file + "->" + target + file) shutil.copyfile( source + file, target + file ) file = "upload.min.htm" #print( "Copy file: " + source + file + "->" + target + file) shutil.copyfile( source + file, target + file ) file = "format.min.htm" #print( "Copy file: " + source + file + "->" + target + file) shutil.copyfile( source + file, target + file )