diff options
author | Marion <marion.zepf@gmail.com> | 2013-07-26 14:18:27 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-07-26 14:18:27 (GMT) |
commit | 3c32b704333842d2df269daeb468cfcaa75f462a (patch) | |
tree | 395665e3b0f1ecd9e0cf74c796cb31f6e4fa4e65 /plugins/turtle_blocks_extras/turtle_blocks_extras.py | |
parent | a550de5d8b3041271e498fbffb2e2c018f56cfe8 (diff) | |
parent | fa7c9acf95db0761a9b7455eb972f20c4a2d5674 (diff) |
Merge branch 'master' of git://git.sugarlabs.org/turtleart/mainline
Diffstat (limited to 'plugins/turtle_blocks_extras/turtle_blocks_extras.py')
-rw-r--r-- | plugins/turtle_blocks_extras/turtle_blocks_extras.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index beb9bfb..8f5a94d 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -957,7 +957,8 @@ Journal objects')) ''' User-defined macros are saved as a json-encoded file; these get loaded into a palette on startup ''' - if os.path.exists(self.tw.macros_path): + if hasattr(self.tw, 'macros_path') and \ + os.path.exists(self.tw.macros_path): files = glob.glob(os.path.join(self.tw.macros_path, '*.tb')) debug_output('making myblocks palette', self.tw.running_sugar) if len(files) > 0: |