imports changed to relative

master
idziubenko 3 years ago
parent 2aeba9c0a3
commit b8be30bc35

@ -14,9 +14,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import print_function from .. import qt
from __future__ import absolute_import
from calculate.consolegui import qt
import urllib.request as urllib2 import urllib.request as urllib2
from .DisplayMethod import DisplayMethod, StartWidget, ConnectLostLabel from .DisplayMethod import DisplayMethod, StartWidget, ConnectLostLabel

@ -14,8 +14,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import absolute_import from .. import qt
from calculate.consolegui import qt
import urllib.request as urllib2 import urllib.request as urllib2
import OpenSSL, hashlib import OpenSSL, hashlib

@ -14,13 +14,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import print_function
from __future__ import absolute_import
import dbus import dbus
import dbus.service import dbus.service
import dbus.mainloop.glib import dbus.mainloop.glib
from calculate.consolegui import qt from .. import qt
import time, sys import time, sys
import calculate.contrib import calculate.contrib
from suds import MethodNotFound from suds import MethodNotFound
@ -35,7 +33,7 @@ from .more import get_sid, get_view_params, _print, get_icon, get_system_rgb, \
dpivalue dpivalue
from .MainClass import ApiClient from .MainClass import ApiClient
from calculate.consolegui.datavars import DataVarsGui from ..datavars import DataVarsGui
from .pid_information import client_pid_info from .pid_information import client_pid_info
#from calculate.lib.cl_lang import setLocalTranslate #from calculate.lib.cl_lang import setLocalTranslate
#setLocalTranslate('console_gui',sys.modules[__name__]) #setLocalTranslate('console_gui',sys.modules[__name__])

@ -14,9 +14,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import print_function from .. import qt
from __future__ import absolute_import
from calculate.consolegui import qt
from .more import LabelWordWrap, _print, get_system_rgb, ParameterWindow, dpivalue from .more import LabelWordWrap, _print, get_system_rgb, ParameterWindow, dpivalue
DEBUG_LEVEL = 99999 DEBUG_LEVEL = 99999

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
from __future__ import absolute_import from __future__ import absolute_import
from calculate.consolegui import qt from .. import qt
from .more import ButtonMenu, FlowLayout, get_sid, ClientServiceThread, \ from .more import ButtonMenu, FlowLayout, get_sid, ClientServiceThread, \
get_view_params, show_msg, client_list_methods, get_system_rgb, \ get_view_params, show_msg, client_list_methods, get_system_rgb, \

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
from __future__ import absolute_import from __future__ import absolute_import
from calculate.consolegui import qt from .. import qt
from .more import ButtonMenu, icon_visible, LabelWordWrap, get_sid, show_msg, \ from .more import ButtonMenu, icon_visible, LabelWordWrap, get_sid, show_msg, \
ClientServiceThread, show_question, get_view_params, _print, \ ClientServiceThread, show_question, get_view_params, _print, \
get_system_rgb, dpivalue get_system_rgb, dpivalue

@ -16,7 +16,7 @@
from __future__ import absolute_import from __future__ import absolute_import
from .Box import MainWgt from .Box import MainWgt
from calculate.consolegui import qt from .. import qt
#from mainmenu import MainMenu #from mainmenu import MainMenu
import os import os

@ -16,7 +16,7 @@
from __future__ import print_function from __future__ import print_function
from __future__ import absolute_import from __future__ import absolute_import
from calculate.consolegui import qt from .. import qt
DEBUG_LEVEL = 99999 DEBUG_LEVEL = 99999

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
from __future__ import absolute_import from __future__ import absolute_import
from calculate.consolegui import qt from .. import qt
from .more import get_system_rgb, ParameterWindow from .more import get_system_rgb, ParameterWindow

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
from __future__ import absolute_import from __future__ import absolute_import
from calculate.consolegui import qt from .. import qt
import time import time
import urllib.request as urllib2 import urllib.request as urllib2
# from calculate.core.client.function import create_obj # from calculate.core.client.function import create_obj

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
# from __future__ import absolute_import # from __future__ import absolute_import
from calculate.consolegui import qt from .. import qt
from .pid_information import client_list_pid, client_pid_info from .pid_information import client_list_pid, client_pid_info
from .more import LabelWordWrap, show_msg, get_sid, ClientServiceThread from .more import LabelWordWrap, show_msg, get_sid, ClientServiceThread

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from calculate.consolegui import qt from .. import qt
import urllib.request as u2 import urllib.request as u2
if hasattr(u2,"ssl"): if hasattr(u2,"ssl"):
u2.ssl._create_default_https_context = u2.ssl._create_unverified_context u2.ssl._create_default_https_context = u2.ssl._create_unverified_context

@ -14,8 +14,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import absolute_import from .. import qt
from calculate.consolegui import qt
import calculate.contrib import calculate.contrib
from suds import WebFault from suds import WebFault
import logging, OpenSSL import logging, OpenSSL

@ -16,7 +16,7 @@
from __future__ import absolute_import from __future__ import absolute_import
import socket import socket
from calculate.consolegui import qt from .. import qt
from .more import LabelWordWrap, show_msg, get_icon from .more import LabelWordWrap, show_msg, get_icon

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
from __future__ import absolute_import from __future__ import absolute_import
from calculate.consolegui import qt from .. import qt
from .more import LabelWordWrap, show_msg, get_icon from .more import LabelWordWrap, show_msg, get_icon
import datetime import datetime
from calculate.lib.datavars import DataVars from calculate.lib.datavars import DataVars

@ -16,7 +16,7 @@
# from __future__ import print_function # from __future__ import print_function
# from __future__ import absolute_import # from __future__ import absolute_import
from calculate.consolegui import qt from .. import qt
# from calculate.core.client.function import create_obj, listToArrayArray, \ # from calculate.core.client.function import create_obj, listToArrayArray, \
# listToArray # listToArray
from .utils import create_obj, listToArrayArray, listToArray from .utils import create_obj, listToArrayArray, listToArray

@ -16,7 +16,7 @@
from __future__ import absolute_import from __future__ import absolute_import
from calculate.consolegui import qt from .. import qt
from .more import TopMenu, HelpMenu#, FlowLayout from .more import TopMenu, HelpMenu#, FlowLayout
class MainMenu(qt.QWidget): class MainMenu(qt.QWidget):

@ -30,7 +30,7 @@ def debug(level, *args):
print(s, end=' ') print(s, end=' ')
print() print()
from calculate.consolegui import qt from .. import qt
# from calculate.core.client.function import create_obj # from calculate.core.client.function import create_obj
# from .utils import create_obj # from .utils import create_obj
from . import utils from . import utils

@ -16,7 +16,7 @@
from __future__ import absolute_import from __future__ import absolute_import
from .more import get_sid, get_icon from .more import get_sid, get_icon
from calculate.consolegui import qt from .. import qt
from .ReturnMessage import ReturnedMessage from .ReturnMessage import ReturnedMessage
import urllib.request as urllib2 import urllib.request as urllib2

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
from __future__ import absolute_import from __future__ import absolute_import
from calculate.consolegui import qt from .. import qt
import urllib.request as urllib2 import urllib.request as urllib2
from calculate.lib.utils.tools import Locker from calculate.lib.utils.tools import Locker

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from calculate.consolegui import qt from .. import qt
class StatusLabel(qt.QLabel): class StatusLabel(qt.QLabel):
def __init__(self, name, parent): def __init__(self, name, parent):

@ -17,7 +17,7 @@
from __future__ import absolute_import from __future__ import absolute_import
import os import os
from calculate.consolegui import qt from .. import qt
from .more import LabelWordWrap, FileOpenWgt, show_msg, show_question, \ from .more import LabelWordWrap, FileOpenWgt, show_msg, show_question, \
client_list_methods, get_icon, dpivalue client_list_methods, get_icon, dpivalue

Loading…
Cancel
Save