Beispiel #1
0
def binarise_one(name):
	Inter = Interpreteur()
	fichier = "../"*bool(__name__ == "__main__")+"map/" + name
	path_file = ".".join(fichier.split(".")[:-1])
	if get_ext(fichier) == "jex":
		if file_exists(path_file+".bex") and file_exists(path_file+".jex"): remove(path_file+".bex")
		if not file_exists(path_file+".bex"):
			Inter.binarise(fichier)
			remove(fichier)
Beispiel #2
0
def binarise_one(name):
    Inter = Interpreteur()
    fichier = "../" * bool(__name__ == "__main__") + "map/" + name
    path_file = ".".join(fichier.split(".")[:-1])
    if get_ext(fichier) == "jex":
        if file_exists(path_file + ".bex") and file_exists(path_file + ".jex"):
            remove(path_file + ".bex")
        if not file_exists(path_file + ".bex"):
            Inter.binarise(fichier)
            remove(fichier)
Beispiel #3
0
def binarise_all():
	"""compresse legerement les fichiers jex en bex, ecrase les anciens bex et supprime les jex source"""
	Inter = Interpreteur()
	for fichier in get_allfiles("../"*bool(__name__ == "__main__")+"map/"):
		path_file = ".".join(fichier.split(".")[:-1])
		if get_ext(fichier) == "jex":
			if file_exists(path_file+".bex") and file_exists(path_file+".jex"): remove(path_file+".bex")
			if not file_exists(path_file+".bex"):
				Inter.binarise(fichier)
				remove(fichier)
Beispiel #4
0
def binarise_all():
    """compresse legerement les fichiers jex en bex, ecrase les anciens bex et supprime les jex source"""
    Inter = Interpreteur()
    for fichier in get_allfiles("../" * bool(__name__ == "__main__") + "map/"):
        path_file = ".".join(fichier.split(".")[:-1])
        if get_ext(fichier) == "jex":
            if file_exists(path_file + ".bex") and file_exists(path_file +
                                                               ".jex"):
                remove(path_file + ".bex")
            if not file_exists(path_file + ".bex"):
                Inter.binarise(fichier)
                remove(fichier)