Extracted b_partial to lib to fix import errors

This commit is contained in:
Artem30801
2020-02-28 18:21:08 +03:00
parent c314f50a4a
commit 91f46e7d11
3 changed files with 6 additions and 1 deletions

View File

@@ -31,6 +31,8 @@ from copter_table import CopterTableWidget, HeaderEditDialog
from visual_land_dialog import VisualLandDialog
from config_editor_models import ConfigDialog
from lib import b_partial
startup_cwd = os.getcwd()
def multi_glob(*patterns):

View File

@@ -8,7 +8,7 @@ import logging
import sys
from functools import partial
from server_qt import b_partial
from lib import b_partial
# TODO: previous step and reset
class VisualLandDialog(QtWidgets.QDialog):

3
lib.py Normal file
View File

@@ -0,0 +1,3 @@
def b_partial(func, *args, **kwargs): # call argument blocker partial
return lambda *a: func(*args, **kwargs)