Fixed issue where Dark Theme is unavailable in python wheel distro.

pgAdmin wheel distro is not having pgadmin.themes.json file in 'web/pgadmin/misc/themes' directory,
so it's better to refer this file from the generated directory.
This commit is contained in:
Aditya Toshniwal 2019-11-20 15:05:20 +05:30 committed by Akshay Joshi
parent bb845817d6
commit 5316a28e6c

View File

@ -4,8 +4,10 @@ from pgadmin.utils.preferences import Preferences
def get_all_themes():
# Themes file is copied in generated directory
theme_file_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'../../static/js/generated',
'pgadmin.themes.json'
)