From c057d7fecc299ca1bff1fb8044043ac6540e5773 Mon Sep 17 00:00:00 2001
From: Jdrezen <jeremie.drezen@gmail.com>
Date: Thu, 20 May 2021 15:57:07 +0200
Subject: [PATCH] Ajout d'un launcher

---
 pyAmakIHM/launcher/launch.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 pyAmakIHM/launcher/launch.py

diff --git a/pyAmakIHM/launcher/launch.py b/pyAmakIHM/launcher/launch.py
new file mode 100644
index 0000000..a8daca5
--- /dev/null
+++ b/pyAmakIHM/launcher/launch.py
@@ -0,0 +1,13 @@
+from os import system
+from tkinter.filedialog import askopenfilename
+from tkinter import Tk
+
+
+root = Tk()
+root.withdraw()
+file = askopenfilename(filetypes =[('Python Files', '*.py')])
+
+if file != '':
+    system('python3 ' + file)
+else:
+    print('Please select a valid file')
-- 
GitLab