<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<div></div>
<span id="result_box" class="" lang="en"><span title="recientemente he instalado PyQt5.7 en python3.5.2 en Windows 7.
">I recently installed PyQt5.7 in python3.5.2 in Windows 7.<br>
</span><span title="he tratado de ejecutar algunos programas sencillos que ya tenía hecho y funcionaban en las anteriores versiones, pero ahora QUrl no carga los archivos del directorio local, sino que trata de buscar siempre en "C:/Users/Fernandez Miguel A/".

">I
 tried to run some simple programs that already had done and worked in previous versions,<br>
but now qurl not charge local directory files, but tries to always look in <span>
"C:/Users/Fernandez Miguel A/"</span>.<br>
(the python and qml file stay in <span>"E:\not SYS\Errata PyQt\quick\extras\flat\</span>")<br>
<br>
</span><span title="main.py:

">main.py:<br>
</span></span><br>
<b># -*- coding: utf-8 -*-<br>
from PyQt5.QtGui import QFontDatabase<br>
from PyQt5.QtWidgets import QApplication, QStyleFactory<br>
from PyQt5.QtCore import QVariant, QUrl, QDir, QProcessEnvironment, QProcess<br>
from PyQt5.QtQml import QQmlApplicationEngine, QQmlEngine, QQmlContext, QQmlComponent<br>
from PyQt5.QtQuick import QQuickView, QQuickItem, QQuickWindow<br>
from PyQt5.QtTest import QTest as Test<br>
<br>
<br>
if __name__ == '__main__':<br>
    import sys, os<br>
    app = QApplication(sys.argv)<br>
<br>
    os.putenv("QT_QUICK_CONTROLS_STYLE", "Flat")<br>
    engine = QQmlApplicationEngine(QUrl.fromLocalFile("MAIN.qml"))<br>
</b>
<p><b>    # <span id="result_box" class="" lang="en"><span title="# la siguiente linea tambien falla
    ">The next line also fails</span></span></b><b><br>
</b></p>
<b>    #engine = QQmlApplicationEngine(QUrl("MAIN.qml"))<br>
    # <span>With the next line run normally</span><br>
    #<b>engine = QQmlApplicationEngine(</b><span>QUrl.fromUserInput("<b>MAIN</b>.qml", sys.path[0])</span>)<br>
<br>
    sys.exit(app.exec_())</b><br>
<br>
<br>
<br>
<p>console:</p>
<p><br>
<i>Failed to load libEGL (No se puede encontrar el m¾dulo especificado.)<br>
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions<br>
</i><span><i>file:///C:/Users/Fernandez Miguel A/MAIN.qml:-1 File not found</i></span><br>
</p>
<p><br>
</p>
<br>
<p></p>
</div>
</body>
</html>