diff --git a/harmonyqml.pro b/harmonyqml.pro index 232a6961..eb0285bc 100644 --- a/harmonyqml.pro +++ b/harmonyqml.pro @@ -66,8 +66,7 @@ file_content += '' file_content += '' for(file, RESOURCE_FILES) { - alias = $$replace(file, src/, '') - file_content += ' ../$$file' + file_content += ' ../$$file' } file_content += '' diff --git a/src/main.cpp b/src/main.cpp index 032459cb..97de703a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -23,11 +23,11 @@ int main(int argc, char *argv[]) { objectContext->setContextProperty("debugMode", false); #endif - QFileInfo qrcPath(":/qml/Window.qml"); + QFileInfo qrcPath(":src/qml/Window.qml"); QQmlComponent component( &engine, - qrcPath.exists() ? "qrc:/qml/Window.qml" : "src/qml/Window.qml" + qrcPath.exists() ? "qrc:/src/qml/Window.qml" : "src/qml/Window.qml" ); component.create(objectContext); diff --git a/src/python/config_files.py b/src/python/config_files.py index 6b7344c1..bff0dbb3 100644 --- a/src/python/config_files.py +++ b/src/python/config_files.py @@ -163,7 +163,7 @@ class Theme(ConfigFile): async def default_data(self) -> str: - async with aiofiles.open("src/themes/Default.qpl", "r") as file: + async with aiofiles.open("src/themes/Default.qpl") as file: return await file.read() diff --git a/src/qml/Python.qml b/src/qml/Python.qml index 66f99880..39f7f855 100644 --- a/src/qml/Python.qml +++ b/src/qml/Python.qml @@ -53,7 +53,7 @@ Python { } addImportPath("src") - addImportPath("qrc:/") + addImportPath("qrc:/src") importNames("python", ["APP"], () => { loadSettings(() => { callCoro("saved_accounts.any_saved", [], any => {