[GRASS-SVN] r52513 - grass/trunk/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 3 16:55:50 PDT 2012


Author: huhabla
Date: 2012-08-03 16:55:50 -0700 (Fri, 03 Aug 2012)
New Revision: 52513

Modified:
   grass/trunk/lib/python/temporal/stds_import.py
Log:
Use absolute path for projection file comparison


Modified: grass/trunk/lib/python/temporal/stds_import.py
===================================================================
--- grass/trunk/lib/python/temporal/stds_import.py	2012-08-03 08:45:21 UTC (rev 52512)
+++ grass/trunk/lib/python/temporal/stds_import.py	2012-08-03 23:55:50 UTC (rev 52513)
@@ -193,12 +193,13 @@
 	if not location:
 		temp_name = core.tempfile()
 		temp_file = open(temp_name, "w")
+		proj_name = os.path.abspath(proj_file_name)
 
 		p = core.start_command("g.proj", flags = "j", stdout = temp_file)
 		p.communicate()
 		temp_file.close()
 
-		if not core.compare_key_value_text_files(temp_name, proj_file_name, sep="="):
+		if not core.compare_key_value_text_files(temp_name, proj_name, sep="="):
 			if overr:
 				core.warning(_("Projection information does not match. Proceeding..."))
 			else:



More information about the grass-commit mailing list