From 96728d07fc0601eb29fe66437ffb59651f1342c2 Mon Sep 17 00:00:00 2001 From: sudo-panda Date: Tue, 16 Jul 2019 19:17:54 +0530 Subject: [PATCH] Change absolute import to relative import --- .../gui/dialogs/libraryexport/libraryexportdialog.py | 2 +- .../gui/dialogs/libraryimport/filepropdialog.py | 2 +- .../gui/dialogs/libraryimport/libraryimportdialog.py | 6 +++--- src/visualstates/gui/visualstates.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/visualstates/gui/dialogs/libraryexport/libraryexportdialog.py b/src/visualstates/gui/dialogs/libraryexport/libraryexportdialog.py index 16332d8..e2c7d9b 100644 --- a/src/visualstates/gui/dialogs/libraryexport/libraryexportdialog.py +++ b/src/visualstates/gui/dialogs/libraryexport/libraryexportdialog.py @@ -25,7 +25,7 @@ QPushButton, QApplication, QHBoxLayout, QVBoxLayout, \ QMessageBox, QPlainTextEdit from PyQt5.QtCore import * -from src.visualstates.githubtools.uploadfile import UploadFile +from ....githubtools.uploadfile import UploadFile class LibraryExportDialog(QDialog): def __init__(self, username, password, xmlFile): diff --git a/src/visualstates/gui/dialogs/libraryimport/filepropdialog.py b/src/visualstates/gui/dialogs/libraryimport/filepropdialog.py index 5b5137a..7b3d5e8 100644 --- a/src/visualstates/gui/dialogs/libraryimport/filepropdialog.py +++ b/src/visualstates/gui/dialogs/libraryimport/filepropdialog.py @@ -20,7 +20,7 @@ from PyQt5.QtWidgets import QDialog, QVBoxLayout, QHBoxLayout, QLabel, QPlainTextEdit, QPushButton from PyQt5.QtCore import Qt -from src.visualstates.githubtools.downloadfile import DownloadFile +from ....githubtools.downloadfile import DownloadFile class FilePropertiesDialog(QDialog): def __init__(self, name, description): diff --git a/src/visualstates/gui/dialogs/libraryimport/libraryimportdialog.py b/src/visualstates/gui/dialogs/libraryimport/libraryimportdialog.py index c5f245d..74e7633 100644 --- a/src/visualstates/gui/dialogs/libraryimport/libraryimportdialog.py +++ b/src/visualstates/gui/dialogs/libraryimport/libraryimportdialog.py @@ -24,9 +24,9 @@ QApplication, QHBoxLayout, QVBoxLayout, QScrollArea, \ QGroupBox, QBoxLayout from PyQt5.QtCore import Qt, pyqtSignal -from src.visualstates.gui.tools.elidedlabel import ElidedLabel -from src.visualstates.githubtools.downloadfile import DownloadFile -from src.visualstates.gui.dialogs.libraryimport.filepropdialog import FilePropertiesDialog +from .filepropdialog import FilePropertiesDialog +from ...tools.elidedlabel import ElidedLabel +from ....githubtools.downloadfile import DownloadFile class FileImportDialog(QDialog): fileStr = pyqtSignal('QString') diff --git a/src/visualstates/gui/visualstates.py b/src/visualstates/gui/visualstates.py index 43fedd8..022a0f9 100644 --- a/src/visualstates/gui/visualstates.py +++ b/src/visualstates/gui/visualstates.py @@ -27,8 +27,8 @@ from .dialogs.namespacedialog import NamespaceDialog from .dialogs.librariesdialog import LibrariesDialog from .dialogs.rosconfigdialog import RosConfigDialog -from src.visualstates.gui.dialogs.libraryexport.libraryexportdialog import LibraryExportDialog -from src.visualstates.gui.dialogs.libraryexport.githubcreddialog import GithubCredentialsDialog +from .dialogs.libraryexport.libraryexportdialog import LibraryExportDialog +from .dialogs.libraryexport.githubcreddialog import GithubCredentialsDialog from .dialogs.libraryimport.libraryimportdialog import FileImportDialog from ..configs.rosconfig import RosConfig from ..generators.cpprosgenerator import CppRosGenerator