diff --git a/src/application.py b/src/application.py index 478d794..4ed11eb 100644 --- a/src/application.py +++ b/src/application.py @@ -49,6 +49,8 @@ def scan(self, ip): clients_list = [] + # FIXME: Path for macaddress.io-db.json for dev + # BODY: If doing dev we need to specify the path using another method qf = QFile(data.__file__.replace("__init__.pyo", "macaddress.io-db.json")) qf.open(QIODevice.ReadOnly | QIODevice.Text) content = qf.readAll() diff --git a/src/main.py b/src/main.py deleted file mode 100644 index 535bdf7..0000000 --- a/src/main.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python -# -*- encoding: utf-8 -*- -import sys -import os -from multiprocessing import freeze_support - -print(sys.path) - -from PyQt5.QtCore import QLibraryInfo - -print("PrefixPath : " + QLibraryInfo.location(QLibraryInfo.PrefixPath)) -print("DocumentationPath : " + QLibraryInfo.location(QLibraryInfo.DocumentationPath)) -print("HeadersPath : " + QLibraryInfo.location(QLibraryInfo.HeadersPath)) -print("LibrariesPath : " + QLibraryInfo.location(QLibraryInfo.LibrariesPath)) -print("LibraryExecutablesPath : " + QLibraryInfo.location(QLibraryInfo.LibraryExecutablesPath)) -print("BinariesPath : " + QLibraryInfo.location(QLibraryInfo.BinariesPath)) -print("PluginsPath : " + QLibraryInfo.location(QLibraryInfo.PluginsPath)) -print("ImportsPath : " + QLibraryInfo.location(QLibraryInfo.ImportsPath)) -print("Qml2ImportsPath : " + QLibraryInfo.location(QLibraryInfo.Qml2ImportsPath)) -print("ArchDataPath : " + QLibraryInfo.location(QLibraryInfo.ArchDataPath)) -print("DataPath : " + QLibraryInfo.location(QLibraryInfo.DataPath)) -print("TranslationsPath : " + QLibraryInfo.location(QLibraryInfo.TranslationsPath)) -print("ExamplesPath : " + QLibraryInfo.location(QLibraryInfo.ExamplesPath)) -print("TestsPath : " + QLibraryInfo.location(QLibraryInfo.TestsPath)) -print("SettingsPath : " + QLibraryInfo.location(QLibraryInfo.SettingsPath)) - -from application import Application - - -def main(): - freeze_support() - - print('Starting...') - app = Application(sys.argv) - - print('Executing...') - sys.exit(app.exec_()) - -main()