From d25e27df4a04c6ec3d45a3841ef30fb5c1c98b9c Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 27 Mar 2023 13:40:41 +0800 Subject: [PATCH] try to fix https://github.com/blueloveTH/pocketpy/issues/43 --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 22188639..432cef8a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -63,6 +63,7 @@ int main(int argc, char** argv){ if(argv_1 == "-h" || argv_1 == "--help") goto __HELP; std::filesystem::path filepath(argv[1]); + filepath = std::filesystem::absolute(filepath); if(!std::filesystem::exists(filepath)){ std::cerr << "File not found: " << argv_1 << std::endl; return 1;