Commit 33684b06 authored by Lucas Bourneuf's avatar Lucas Bourneuf

improve script

parent f685a0bb
......@@ -2,8 +2,6 @@
"""Load lp file knowing its path.
"""
import tkinter as tk
import tkinter.filedialog
from functools import partial
NAME = 'Open lp file'
......@@ -13,10 +11,7 @@ TAGS = {'ASP', 'utils'}
INPUTS = {}
OUTPUTS = {} # in fact, we do not know. Sorry.
OPEN_LP_FILE = partial(tk.filedialog.askopenfilename, defaultextension='.lp')
def run_on(context:str, *, file:OPEN_LP_FILE=None):
def run_on(context:str, *, file:open=None):
"""
file -- the lp file to open. Must contains valid ASP.
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment