Exemplo n.º 1
0
    def __views_folder(self):
        path_from = f"{PATH_MODULE}/{FOLDER_TEMPLATE}/views"
        path_to = f"{PATH_MODULE}/{self.__tmp_folder}/views"

        mkdir(path_to)
        files = scandir(path_from)

        for strfile in files:
            self.__save_replaced(f"{path_from}/{strfile}",
                                 f"{path_to}/{strfile}")
Exemplo n.º 2
0
    def __config_folder(self):
        path_from = f"{PATH_MODULE}/{FOLDER_TEMPLATE}/config"
        path_to = f"{PATH_MODULE}/{self.__tmp_folder}/config"

        mkdir(path_to)
        files = scandir(path_from)

        for strfile in files:
            if ".js" not in strfile:
                continue
            self.__save_replaced(f"{path_from}/{strfile}",
                                 f"{path_to}/{strfile}")
Exemplo n.º 3
0
 def __create_temp_dir(self):
     path = f"{PATH_MODULE}/{self.__tmp_folder}"
     self.__mod_folder = path
     mkdir(path)