Skip to content
Snippets Groups Projects
Commit c057d7fe authored by Jdrezen's avatar Jdrezen
Browse files

Ajout d'un launcher

parent 8f9d1f01
No related branches found
No related tags found
No related merge requests found
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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment