From 2214a5f40a079845d61244b3be40423b45c683a0 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 27 Mar 2018 16:30:10 +0200 Subject: [PATCH] Remove duplicate imports Contributes to issue CURA-5045. --- cura/CrashHandler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index 1108ff0bf0..4c955fe59f 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -18,7 +18,6 @@ from PyQt5.QtCore import QT_VERSION_STR, PYQT_VERSION_STR, Qt, QUrl from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTextEdit, QGroupBox, QCheckBox, QPushButton from PyQt5.QtGui import QDesktopServices -from UM.Resources import Resources from UM.Application import Application from UM.Logger import Logger from UM.View.GL.OpenGL import OpenGL @@ -131,10 +130,9 @@ class CrashHandler: self._sendCrashReport() os._exit(1) + ## Backup the current resource directories and create clean ones. def _backupAndStartClean(self): - # backup the current cura directories and create clean ones from cura.CuraVersion import CuraVersion - from UM.Resources import Resources # The early crash may happen before those information is set in Resources, so we need to set them here to # make sure that Resources can find the correct place. Resources.ApplicationIdentifier = "cura"