|
@@ -7,7 +7,14 @@ int main(int argc, char *argv[])
|
|
{
|
|
{
|
|
QCoreApplication a(argc, argv);
|
|
QCoreApplication a(argc, argv);
|
|
|
|
|
|
- iv::ivmodule * pivmodule = new iv::ivdriver_gps_hcp2();
|
|
|
|
|
|
+ QString strpath = QCoreApplication::applicationDirPath();
|
|
|
|
+ if(argc < 2)
|
|
|
|
+ strpath = strpath + "/hcp2.xml";
|
|
|
|
+ else
|
|
|
|
+ strpath = argv[1];
|
|
|
|
+ std::cout<<strpath.toStdString()<<std::endl;
|
|
|
|
+
|
|
|
|
+ iv::ivmodule * pivmodule = new iv::ivdriver_gps_hcp2(strpath.toStdString());
|
|
pivmodule->start();
|
|
pivmodule->start();
|
|
|
|
|
|
return a.exec();
|
|
return a.exec();
|