Ejemplo n.º 1
0
def find_type_project(d, fileMake):
    """ Verifica qual tipo projeto deve ser convertido
        BPK ou BPR """

    FileProject = futil.change_ext(fileMake, 'bpk')
    if os.path.exists(d + '\\' + FileProject) is False:
        FileProject = futil.change_ext(fileMake, 'bpr')
    
    return FileProject
Ejemplo n.º 2
0
def find_type_project_path(path):
    """ Verifica qual tipo projeto deve ser convertido
        BPK ou BPR """

    fileProject = futil.change_ext(path, 'bpk')
    if os.path.exists(fileProject) is False:
        fileProject = futil.change_ext(path, 'bpr')
    
    return fileProject
Ejemplo n.º 3
0
def find_type_project(d, fileMake):
    """
    Verifica qual tipo projeto deve ser convertido BPK ou BPR
    """

    #TODO: colocar as extensoes definidas no pacote borland
    FileProject = futil.change_ext(fileMake, 'bpk')
    if os.path.exists(d + '\\' + FileProject) is False:
        FileProject = futil.change_ext(fileMake, 'bpr')

    return FileProject
Ejemplo n.º 4
0
def find_type_project_path(path):
    """
    Verifica qual tipo projeto deve ser convertido
    BPK ou BPR
    """

    fileProject = futil.change_ext(path, 'bpk')
    if os.path.exists(fileProject) is False:
        fileProject = futil.change_ext(path, 'bpr')

    return fileProject
Ejemplo n.º 5
0
def find_type_project_bin(path, fileMake):
    """ Converte a extensao do arquivo de make para EXE ou BPK
        baseado no na extensao do arquivo de projeto (BPK ou BPR).
    """

    FileProject = futil.change_ext(fileMake, 'bpk')
    if os.path.exists(path + '\\' + FileProject) is False:
        FileProject = futil.change_ext(fileMake, 'exe')
    else:
        FileProject = futil.change_ext(fileMake, 'bpl')
    
    return FileProject
Ejemplo n.º 6
0
def find_type_project_bin(path, fileMake):
    """
    Converte a extensao do arquivo de make para EXE ou BPK
    baseado no na extensao do arquivo de projeto (BPK ou BPR).
    """

    FileProject = futil.change_ext(fileMake, 'bpk')
    if os.path.exists(path + '\\' + FileProject) is False:
        FileProject = futil.change_ext(fileMake, 'exe')
    else:
        FileProject = futil.change_ext(fileMake, 'bpl')

    return FileProject
Ejemplo n.º 7
0
def proc_dir(dirs) :
    """ Converte todos os projetos em dirs.
        Para ser usado em prompt """

    for d, file in dirs :        
        FileMake = futil.change_ext(file, 'mak')
        print 'Gerando ' + FileMake        
        gera_make(d, FileMake)
Ejemplo n.º 8
0
    def generate_res_file(self, path, file, dataRes):
        """
        Gera arquivo RES do projeto
        """

        compRes = fileres.FileRes()
        compRes.CriaRes(path, file, dataRes)
        fileRes = futil.change_ext(file, 'res')
        self.__log("Arquivo RES: " + fileRes + " gerado")
Ejemplo n.º 9
0
def proc_dir(dirs):
    """
    Converte todos os projetos em dirs.
    Para ser usado em prompt
    """

    for d, file in dirs:
        FileMake = futil.change_ext(file, 'mak')
        print 'Gerando ' + FileMake
        gera_make(d, FileMake)