Forráskód Böngészése

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 éve
szülő
commit
27694b25be
1 módosított fájl, 2 hozzáadás és 1 törlés
  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:
 	if not location:
 		temp_name = core.tempfile()
 		temp_name = core.tempfile()
 		temp_file = open(temp_name, "w")
 		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 = core.start_command("g.proj", flags = "j", stdout = temp_file)
 		p.communicate()
 		p.communicate()
 		temp_file.close()
 		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:
 			if overr:
 				core.warning(_("Projection information does not match. Proceeding..."))
 				core.warning(_("Projection information does not match. Proceeding..."))
 			else:
 			else: