summaryrefslogtreecommitdiff
path: root/grc/core/generator/Generator.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-07-28 14:32:45 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-07-28 14:32:45 -0700
commit7d09110f19cc9c9d4622b79b8f79c0f8d776b4f9 (patch)
tree03db01992e617d72d0736dcb265576a7bdbd0fa9 /grc/core/generator/Generator.py
parent1c122cbb5cdb1a979fc60e81646a39cbe7b89adf (diff)
parent05bdf36c65dc6af32185053eb26cca793747d214 (diff)
Merge branch 'maint'
Diffstat (limited to 'grc/core/generator/Generator.py')
-rw-r--r--grc/core/generator/Generator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/core/generator/Generator.py b/grc/core/generator/Generator.py
index fb7a3afb99..3062440814 100644
--- a/grc/core/generator/Generator.py
+++ b/grc/core/generator/Generator.py
@@ -74,13 +74,14 @@ class TopBlockGenerator(object):
self._flow_graph = FlowGraphProxy(flow_graph)
self._generate_options = self._flow_graph.get_option('generate_options')
self._mode = TOP_BLOCK_FILE_MODE
- dirname = self._dirname = os.path.dirname(file_path)
+ 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):
dirname = tempfile.gettempdir()
filename = self._flow_graph.get_option('id') + '.py'
self.file_path = os.path.join(dirname, filename)
+ self._dirname = dirname
def get_file_path(self):
return self.file_path