mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
This commit is contained in:
parent
dc72796e2c
commit
d25e27df4a
@ -63,6 +63,7 @@ int main(int argc, char** argv){
|
|||||||
if(argv_1 == "-h" || argv_1 == "--help") goto __HELP;
|
if(argv_1 == "-h" || argv_1 == "--help") goto __HELP;
|
||||||
|
|
||||||
std::filesystem::path filepath(argv[1]);
|
std::filesystem::path filepath(argv[1]);
|
||||||
|
filepath = std::filesystem::absolute(filepath);
|
||||||
if(!std::filesystem::exists(filepath)){
|
if(!std::filesystem::exists(filepath)){
|
||||||
std::cerr << "File not found: " << argv_1 << std::endl;
|
std::cerr << "File not found: " << argv_1 << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user