From: isn Date: Thu, 19 Nov 2015 13:07:42 +0000 (+0300) Subject: refs #697 (p.1) X-Git-Tag: v1.5~9^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9396f87db7f68625720d569c16d753afba97cdf1;p=modules%2Fhydro.git refs #697 (p.1) --- diff --git a/src/HYDROData/HYDROData_LandCoverMap.cxx b/src/HYDROData/HYDROData_LandCoverMap.cxx index 9d9d21e5..367f6048 100644 --- a/src/HYDROData/HYDROData_LandCoverMap.cxx +++ b/src/HYDROData/HYDROData_LandCoverMap.cxx @@ -64,6 +64,7 @@ #include #include #include +#include const char TELEMAC_FORMAT = 'f'; const int TELEMAC_PRECISION = 3; @@ -976,12 +977,12 @@ QStringList HYDROData_LandCoverMap::DumpToPython( const QString& thePyScri ExportDBF( aDbfFileName, anAttr, anAttrValues, aTypes ); aResList << QString( "%1.ImportSHP( '%2' )" ). - arg( aName ).arg( aShpFileName ); + arg( aName ).arg( QFileInfo( aShpFileName ).fileName() ); Dump( "attr_values", anAttrValues, aResList ); Dump( "types", aTypes, aResList ); aResList << QString( "%1.ImportDBF( '%2', '%3', attr_values, types )" ). - arg( aName ).arg( aDbfFileName ).arg( anAttr ); + arg( aName ).arg( QFileInfo( aDbfFileName ).fileName() ).arg( anAttr ); return aResList; }