diff --git a/ci/appveyor/build.cmd b/ci/appveyor/build.cmd index a0a08f12fce58868a96b3fd4549bdf4d7785f286..a1b9b313e4a0f0b3dc536e1148fd2f863329fbf0 100644 --- a/ci/appveyor/build.cmd +++ b/ci/appveyor/build.cmd @@ -3,7 +3,7 @@ call activate test-environment echo "%PATH%" -echo "%QT_QPA_PLATFORM_PLUGIN_PATH%" +echo "%QT_PLUGIN_PATH%" python -V call pyuic5 --version diff --git a/ci/appveyor/tests.cmd b/ci/appveyor/tests.cmd index a2029cc5d5442022e4959cc771f92e0845de1efc..dc986528450f7b77beb5ec417c64a30986c69530 100644 --- a/ci/appveyor/tests.cmd +++ b/ci/appveyor/tests.cmd @@ -3,7 +3,7 @@ call activate test-environment echo "%PATH%" -echo "%QT_QPA_PLATFORM_PLUGIN_PATH%" +echo "%QT_PLUGIN_PATH%" python -V call pyuic5 --version @@ -11,6 +11,8 @@ pyrcc5 -version lrelease -version +echo %CWS% + python setup.py test if %errorlevel% neq 0 exit /b 1 \ No newline at end of file diff --git a/setup.py b/setup.py index fd9ca187bd8b116e0c17237eca9b51c63b03c5ad..d3976757c7b115c593c8e07fd9e2fa5694cafeed 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,12 @@ import unittest sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'src'))) if "test" in sys.argv: + if "XDG_CONFIG_HOME" in os.environ: + os.environ["XDG_CONFIG_HOME"] = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tmp')) + elif "HOME" in os.environ: + os.environ["HOME"] = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tmp')) + elif "APPDATA" in os.environ: + os.environ["APPDATA"] = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tmp')) runner = unittest.TextTestRunner().run(unittest.defaultTestLoader.discover(start_dir='sakia.tests', pattern='test_*'))