Commit e76af846 authored by Robert Lancaster's avatar Robert Lancaster Committed by Jasem Mutlaq

This patch will force astrometry.net to use the config file that the user...

This patch will force astrometry.net to use the config file that the user specifies in the options.  That should be less confusing to users.
parent 85c60d4c
...@@ -250,6 +250,14 @@ bool OfflineAstrometryParser::startSovler(const QString &filename, const QStrin ...@@ -250,6 +250,14 @@ bool OfflineAstrometryParser::startSovler(const QString &filename, const QStrin
&& (args.contains("parity") == false) && (args.contains("parity") == false)
&& (args.contains("-3") || args.contains("-L")) ) && (args.contains("-3") || args.contains("-L")) )
solverArgs << "--parity" << parity; solverArgs << "--parity" << parity;
QString confPath;
if(Options::astrometryConfFileIsInternal())
confPath = QCoreApplication::applicationDirPath()+"/astrometry/bin/astrometry.cfg";
else
confPath = Options::astrometryConfFile();
solverArgs << "--config" << confPath;
QString solutionFile = QDir::tempPath() + "/solution.wcs"; QString solutionFile = QDir::tempPath() + "/solution.wcs";
solverArgs << "-W" << solutionFile << filename; solverArgs << "-W" << solutionFile << filename;
......
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