summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2010-03-03 16:42:50 -0800
committerJosh Blum2010-03-03 16:42:50 -0800
commiteb6ff48d9b5894d1662f361d82d2c7cd80b35218 (patch)
treed0393588708478f74e61837b7c4c7171e480b3ed
parente259d4d2eeb0b152e1e042333a8b36e07f5ad094 (diff)
downloadgnuradio-eb6ff48d9b5894d1662f361d82d2c7cd80b35218.tar.gz
gnuradio-eb6ff48d9b5894d1662f361d82d2c7cd80b35218.tar.bz2
gnuradio-eb6ff48d9b5894d1662f361d82d2c7cd80b35218.zip
Fixed bug in checking if path is writable.
Some moron put quotes around the variable name...
-rw-r--r--grc/python/Generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 6c7025443..acd98ef84 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)