summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/helpers.py2
-rw-r--r--qml/mageiawelcome.py9
2 files changed, 3 insertions, 8 deletions
diff --git a/qml/helpers.py b/qml/helpers.py
index 52e9660..05fb4c9 100644
--- a/qml/helpers.py
+++ b/qml/helpers.py
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
-
-import csv
import gettext
import rpm
diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py
index 1f366d3..534b9f4 100644
--- a/qml/mageiawelcome.py
+++ b/qml/mageiawelcome.py
@@ -2,13 +2,12 @@
# -*- coding: utf-8 -*-
from PyQt5.QtGui import QGuiApplication
from PyQt5.QtQuick import QQuickView
-from PyQt5.QtQml import qmlRegisterType
from PyQt5.QtCore import QUrl, QLocale, QTranslator, QLibraryInfo, QVariant, QAbstractListModel, \
- QModelIndex, Qt, QObject, pyqtSlot, pyqtProperty
+ QModelIndex, Qt, QObject, pyqtSlot
import sys
import os
import subprocess
-from helpers import *
+from helpers import get_desktop_name, get_desktop_name2, is_installed
import pwd
class ConfList(QAbstractListModel):
@@ -31,8 +30,6 @@ class ConfList(QAbstractListModel):
arch = '64-bit'
else:
arch = '32-bit'
- home = os.getenv("HOME")
- username = os.getenv("USER")
try:
desktop = get_desktop_name(os.path.basename(os.getenv("DESKTOP_SESSION")))
except:
@@ -97,7 +94,7 @@ class Norun(QObject):
os.remove( self.conffile)
else:
os.makedirs(self.home + "/.config/mageiawelcome", exist_ok=True)
- with open( self.conffile, 'w') as f:
+ with open( self.conffile, 'w') :
pass
@pyqtSlot(result=bool)