mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-14 00:52:35 +02:00
Signed-off-by: Tomasz Śliwa <tomekmsliwa@gmail.com> Closes: https://bugs.gentoo.org/952251 Part-of: https://github.com/gentoo/gentoo/pull/41792 Closes: https://github.com/gentoo/gentoo/pull/41792 Signed-off-by: Michał Górny <mgorny@gentoo.org>
20 lines
693 B
Diff
20 lines
693 B
Diff
--- a/nfoview/paths.py 2025-05-03 12:37:51.767811975 +0200
|
|
+++ b/nfoview/paths.py 2025-05-03 12:38:42.881021423 +0200
|
|
@@ -42,7 +42,7 @@
|
|
return Path(sys.argv[0]).parent / "share" / "nfoview"
|
|
|
|
def get_data_directory_source():
|
|
- return Path(__file__).parent.parent / "data"
|
|
+ return Path(__file__).parent
|
|
|
|
def get_locale_directory():
|
|
if hasattr(sys, "frozen"):
|
|
@@ -53,7 +53,7 @@
|
|
return Path(sys.argv[0]).parent / "share" / "locale"
|
|
|
|
def get_locale_directory_source():
|
|
- return Path(__file__).parent.parent / "locale"
|
|
+ return Path(f"{sys.prefix}/share/locale")
|
|
|
|
CONFIG_HOME_DIR = get_config_home_directory().resolve()
|
|
DATA_DIR = get_data_directory().resolve()
|