Commit 4f4b58ba authored by xuebingbing's avatar xuebingbing

cross platform code fix

parent 0cb9e928
...@@ -156,7 +156,8 @@ int pcd2las(const cxxopts::ParseResult& argsresult) ...@@ -156,7 +156,8 @@ int pcd2las(const cxxopts::ParseResult& argsresult)
} }
path full_path(initial_path()); path full_path(initial_path());
full_path = system_complete(path(pcdfilepath, portable_name)); //full_path = system_complete(path(pcdfilepath, portable_name));
full_path = system_complete(path(pcdfilepath));
if (!exists(full_path)) if (!exists(full_path))
{ {
std::cout << "ERROR:file not exist," << full_path << std::endl; std::cout << "ERROR:file not exist," << full_path << std::endl;
...@@ -164,7 +165,8 @@ int pcd2las(const cxxopts::ParseResult& argsresult) ...@@ -164,7 +165,8 @@ int pcd2las(const cxxopts::ParseResult& argsresult)
} }
std::string lasfilepath; std::string lasfilepath;
full_path = system_complete(path(lasfilepath, portable_name)); //full_path = system_complete(path(lasfilepath, portable_name));
full_path = system_complete(path(lasfilepath));
if (exists(full_path)) if (exists(full_path))
std::cout << "INFO:cover file," << lasfilepath << std::endl; std::cout << "INFO:cover file," << lasfilepath << std::endl;
...@@ -242,7 +244,8 @@ int pcd2lasauto(const cxxopts::ParseResult& argsresult) ...@@ -242,7 +244,8 @@ int pcd2lasauto(const cxxopts::ParseResult& argsresult)
// 查找station_jf.txt文件 // 查找station_jf.txt文件
path workdir(initial_path()); path workdir(initial_path());
workdir = system_complete(path(workdirpath, portable_name)); //workdir = system_complete(path(workdirpath, portable_name));
workdir = system_complete(path(workdirpath));
std::stringstream ss; std::stringstream ss;
ss << workdir.filename().string() << "_station_jf.txt"; ss << workdir.filename().string() << "_station_jf.txt";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment