projects
/
debian
/
gnuradio
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e259d4d
)
Fixed bug in checking if path is writable.
author
Josh Blum
<josh@joshknows.com>
Thu, 4 Mar 2010 00:42:50 +0000
(16:42 -0800)
committer
Josh Blum
<josh@joshknows.com>
Thu, 4 Mar 2010 00:42:50 +0000
(16:42 -0800)
Some moron put quotes around the variable name...
grc/python/Generator.py
patch
|
blob
|
history
diff --git
a/grc/python/Generator.py
b/grc/python/Generator.py
index 6c7025443810bb9dc5acf908d78dbb7e4748944a..acd98ef8414ef2a6ee1241451efd28d76f70e511 100644
(file)
--- 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)