From eb6ff48d9b5894d1662f361d82d2c7cd80b35218 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 3 Mar 2010 16:42:50 -0800 Subject: [PATCH] Fixed bug in checking if path is writable. Some moron put quotes around the variable name... --- grc/python/Generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grc/python/Generator.py b/grc/python/Generator.py index 6c702544..acd98ef8 100644 --- a/grc/python/Generator.py +++ b/grc/python/Generator.py @@ -48,7 +48,7 @@ class Generator(object): dirname = os.path.dirname(file_path) #handle the case where the directory is read-only #in this case, use the system's temp directory - if not os.access('dirname', os.W_OK): + if not os.access(dirname, os.W_OK): dirname = tempfile.gettempdir() filename = self._flow_graph.get_option('id') + '.py' self._file_path = os.path.join(dirname, filename) -- 2.39.5