correction output file name
This commit is contained in:
@@ -76,7 +76,7 @@ def open_firewall_gui_multi(app, OUTPUT_DIR, HELP_FILE_FW, FIREWALL_DIR, FIREWAL
|
||||
app2 = tk.Toplevel(app)
|
||||
app2.title("Analyse Configuration Firewall - Plusieurs firewall")
|
||||
app2.geometry("800x450")
|
||||
app2.resizable(False, False)
|
||||
app2.resizable(True, True)
|
||||
|
||||
matrice_flux = tk.BooleanVar()
|
||||
matrice_routage = tk.BooleanVar()
|
||||
@@ -159,6 +159,13 @@ def open_firewall_gui_multi(app, OUTPUT_DIR, HELP_FILE_FW, FIREWALL_DIR, FIREWAL
|
||||
if matrice_routage.get():
|
||||
cmd.append("-r")
|
||||
|
||||
cmd.append("-o")
|
||||
if item["type"] == "file":
|
||||
base_name = os.path.splitext(item["name"])[0]
|
||||
cmd.append(base_name)
|
||||
else:
|
||||
cmd.append(item["name"])
|
||||
|
||||
print("Commande exécutée :", " ".join(cmd))
|
||||
subprocess.run(cmd, cwd=FIREWALL_DIR, check=True)
|
||||
|
||||
@@ -412,7 +419,7 @@ def open_firewall_gui(root, BASE_DIR):
|
||||
app = tk.Toplevel(root)
|
||||
app.title("Analyse Configuration Firewall")
|
||||
app.geometry("800x450")
|
||||
app.resizable(False, False)
|
||||
app.resizable(True, True)
|
||||
|
||||
firewall_var = tk.StringVar()
|
||||
input_var = tk.StringVar()
|
||||
|
||||
Reference in New Issue
Block a user