blob: 1bfecee33a475a28e0b565c01e7d1682d5c7927d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/src/io/program_path.cc b/src/io/program_path.cc
index c268c776..8907c3e4 100644
--- a/src/io/program_path.cc
+++ b/src/io/program_path.cc
@@ -38,7 +38,11 @@ io::path io::get_program_path()
io::path io::get_assets_dir_path()
{
- auto dir = program_path.parent();
+ io::path dir;
+ if (std::getenv("_ARC_UNPACKER_TESTS"))
+ dir = program_path;
+ else
+ dir = io::path("/usr/share/arc_unpacker");
do
{
const auto path = dir / "etc";
|