Do not use tmp-location

pull/1109/head
Piero Toffanin 2021-11-15 14:23:41 -05:00
rodzic fc6e666a6e
commit 754b3a5896
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -100,9 +100,9 @@ class GrassContext:
env["PYTHONPATH"] = "%s%s%s" % (self.python_path, sep, env.get("PYTHONPATH", ""))
# Execute it
logger.info("Executing grass script from {}: {} --tmp-location {} --exec python3 {} {}".format(self.get_cwd(), self.grass_binary, self.location, script, " ".join(params)))
logger.info("Executing grass script from {}: {} -c {} location --exec python3 {} {}".format(self.get_cwd(), self.grass_binary, self.location, script, " ".join(params)))
command = [self.grass_binary, '--tmp-location', self.location, '--exec', 'python3', script] + params
command = [self.grass_binary, '-c', self.location, 'location', '--exec', 'python3', script] + params
if platform.system() == "Windows":
# communicate() hangs on Windows so we use check_output instead
try: