diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/launcher.py | 3 | ||||
-rw-r--r-- | src/main.cpp | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/launcher.py b/src/launcher.py index 328c965..979f388 100644 --- a/src/launcher.py +++ b/src/launcher.py @@ -10,6 +10,9 @@ class Thandy(threading.Thread): def run(self): while True: try: + os.environ["THANDY_HOME"] = os.path.join(os.getcwd(), + "config", + "thandy") os.environ["THP_DB_ROOT"] = os.path.join(os.getcwd(), "packages") os.environ["THP_INSTALL_ROOT"] = os.path.join(os.getcwd(), diff --git a/src/main.cpp b/src/main.cpp index 7b99470..1ebbad8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,7 +33,12 @@ mergeDirectories(const fs::path &source, if (fs::is_regular_file(dir_iter->status())) { auto destFilePath = dest / dir_iter->path().filename(); - copy_file(dir_iter->path(), destFilePath, fs::copy_option::overwrite_if_exists); + std::cout << "copy_file " << dir_iter->path() << " to " << destFilePath << std::endl; + if (fs::exists(destFilePath)) + { + fs::remove(destFilePath); + } + copy_file(dir_iter->path(), destFilePath); } else if (fs::is_directory(dir_iter->status())) { |