Browse Source

Use absolute path for projection file comparison

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52513 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 12 years ago
parent
commit
27694b25be
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/python/temporal/stds_import.py

+ 2 - 1
lib/python/temporal/stds_import.py

@@ -193,12 +193,13 @@ def import_stds(input, output, extrdir, title = None, descr = None, location = N
 	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: