Remove duplicate imports

Contributes to issue CURA-5045.
This commit is contained in:
Ghostkeeper 2018-03-27 16:30:10 +02:00
parent da0d7a25c3
commit 2214a5f40a
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -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.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTextEdit, QGroupBox, QCheckBox, QPushButton
from PyQt5.QtGui import QDesktopServices from PyQt5.QtGui import QDesktopServices
from UM.Resources import Resources
from UM.Application import Application from UM.Application import Application
from UM.Logger import Logger from UM.Logger import Logger
from UM.View.GL.OpenGL import OpenGL from UM.View.GL.OpenGL import OpenGL
@ -131,10 +130,9 @@ class CrashHandler:
self._sendCrashReport() self._sendCrashReport()
os._exit(1) os._exit(1)
## Backup the current resource directories and create clean ones.
def _backupAndStartClean(self): def _backupAndStartClean(self):
# backup the current cura directories and create clean ones
from cura.CuraVersion import CuraVersion 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 # 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. # make sure that Resources can find the correct place.
Resources.ApplicationIdentifier = "cura" Resources.ApplicationIdentifier = "cura"