fix
This commit is contained in:
parent
66e0b6c71e
commit
77131074e7
@ -974,12 +974,12 @@ void RaptorEagleCCD::startAquisition()
|
||||
if (pt.filename().empty()) {
|
||||
fname = "";
|
||||
} else {
|
||||
pt = pt.parent_path();
|
||||
if (pt.empty()) {
|
||||
pt = ".";
|
||||
auto pt_p = pt.parent_path();
|
||||
if (pt_p.empty()) {
|
||||
pt_p = ".";
|
||||
}
|
||||
|
||||
auto pt_cn = std::filesystem::canonical(pt, ec);
|
||||
auto pt_cn = std::filesystem::canonical(pt_p, ec);
|
||||
if (ec) {
|
||||
logError("Invalid FITS-image filename path: {}", pt.c_str());
|
||||
throw std::system_error(RaptorEagleCCDError::ERROR_INVALID_PATH);
|
||||
@ -992,7 +992,7 @@ void RaptorEagleCCD::startAquisition()
|
||||
throw std::system_error(RaptorEagleCCDError::ERROR_INSUFFICIENT_FILESYSTEM_PERMISSIONS);
|
||||
}
|
||||
|
||||
fname = pt_cn; // use canonical file path
|
||||
fname = pt_cn / pt.filename(); // use canonical file path
|
||||
}
|
||||
|
||||
logInfo("Start acquisition process ...");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user