From e2468b57cf0649dc289164aa131affa46451fa8a Mon Sep 17 00:00:00 2001 From: Cherubim Date: Tue, 2 Oct 2018 00:18:57 +0200 Subject: [PATCH] Correct stat global names This is a code path that I don't seem to hit on my computer at least. --- X3GWriter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/X3GWriter.py b/X3GWriter.py index 464a118..c8657cc 100644 --- a/X3GWriter.py +++ b/X3GWriter.py @@ -107,7 +107,7 @@ def gpx_executable(self): result = os.path.expanduser(result) result = os.path.expandvars(result) Logger.log("d", "GPX executable: {executable_file}".format(executable_file=result)) - os.chmod(result, stat.IXUSR | stat.IRUSR | stat.IRGRP | stat.IROTH) + os.chmod(result, stat.S_IXUSR | stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH) return result ## Gets the command that we need to call GPX with.