mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 07:07:58 +00:00
changed importing system
This commit is contained in:
@@ -45,10 +45,9 @@ except ImportError:
|
||||
|
||||
# Add parent dir to PATH to import messaging_lib and config_lib
|
||||
current_dir = (os.path.dirname(os.path.realpath(__file__)))
|
||||
lib_dir = os.path.realpath(os.path.join(current_dir, '../lib'))
|
||||
sys.path.insert(0, lib_dir)
|
||||
sys.path.insert(0, os.path.realpath(os.path.join(current_dir, os.pardir, os.pardir)))
|
||||
|
||||
import messaging
|
||||
import lib.messaging as messaging
|
||||
import modules.client_core as client_core
|
||||
import modules.animation as animation
|
||||
import modules.mavros_wrapper as mavros
|
||||
|
||||
@@ -15,14 +15,13 @@ import selectors2 as selectors
|
||||
from contextlib import closing
|
||||
|
||||
# Add parent dir to PATH to import messaging_lib and config_lib
|
||||
current_dir = (os.path.dirname(os.path.realpath(__file__)))
|
||||
lib_dir = os.path.realpath(os.path.join(current_dir, '../../lib'))
|
||||
sys.path.insert(0, lib_dir)
|
||||
current_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
sys.path.insert(0, os.path.realpath(os.path.join(current_dir, os.pardir, os.pardir)))
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
import messaging
|
||||
from config import ConfigManager
|
||||
import lib.messaging as messaging
|
||||
from lib.config import ConfigManager
|
||||
|
||||
active_client = None # needs to be refactored: Singleton \ factory callbacks
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ from functools import partialmethod
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
from PyQt5.QtCore import Qt as Qt, QUrl, QDir
|
||||
|
||||
from config import ConfigManager
|
||||
from lib.config import ConfigManager
|
||||
|
||||
# Additional custom roles to interact with various table data
|
||||
ModelDataRole = 998
|
||||
|
||||
@@ -12,11 +12,11 @@ import traceback
|
||||
|
||||
# Add parent dir to PATH to import messaging_lib and config_lib
|
||||
current_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
sys.path.insert(0, os.path.realpath(os.path.join(current_dir, os.pardir, os.pardir, 'lib')))
|
||||
sys.path.insert(0, os.path.realpath(os.path.join(current_dir, os.pardir, os.pardir)))
|
||||
|
||||
# Import modules from lib dir
|
||||
import messaging
|
||||
from config import ConfigManager
|
||||
import lib.messaging as messaging
|
||||
from lib.config import ConfigManager
|
||||
|
||||
random.seed()
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import logging
|
||||
import sys
|
||||
from functools import partial
|
||||
|
||||
from lib import b_partial
|
||||
from lib.lib import b_partial
|
||||
|
||||
# TODO: previous step and reset
|
||||
class VisualLandDialog(QtWidgets.QDialog):
|
||||
|
||||
@@ -16,9 +16,9 @@ from quamash import QEventLoop
|
||||
from modules.server_core import Server, Client, now
|
||||
|
||||
# Import modules from lib, that was added to PATH on the previous step
|
||||
import messaging
|
||||
import config as cfg
|
||||
from lib import b_partial
|
||||
import lib.messaging as messaging
|
||||
import lib.config as cfg
|
||||
from lib.lib import b_partial
|
||||
|
||||
# Import PyQt5 related functions
|
||||
from PyQt5 import QtWidgets, QtMultimedia, QtCore
|
||||
|
||||
Reference in New Issue
Block a user