ColinDuquesnoy / QDarkStyleSheet

A dark style sheet for QtWidgets application
Other
2.81k stars 729 forks source link

RC_PATH etc incorrectly set; this causes test_create_custom_qss to fail #298

Closed juliangilbey closed 2 years ago

juliangilbey commented 2 years ago

This test also fails, as qdarkstyle/__init__.py defines: https://github.com/ColinDuquesnoy/QDarkStyleSheet/blob/cbc93c0552645218650f280a1d2179617ba58cd2/qdarkstyle/__init__.py#L85 but the rc files now live under either qdarkstyle/dark or qdarkstyle/light. The same goes for the definitions of QSS_PATH and SVG_PATH on the adjacent lines.

Here's the output of running the test (slightly trimmed):

Traceback (most recent call last):
  File ".../qdarkstyle/utils/scss.py", line 186, in create_custom_qss
    shutil.copytree(RC_PATH, theme_rc_path)
  File "/usr/lib/python3.9/shutil.py", line 564, in copytree
    with os.scandir(src) as itr:
FileNotFoundError: [Errno 2] No such file or directory: '.../qdarkstyle/rc'