From 7fcbc8b6e7ccc07776d92c0535edc5bd5681e005 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 25 Jul 2013 20:38:38 +0000 Subject: fix problems with non-interactive mode --- (limited to 'turtleblocks.py') diff --git a/turtleblocks.py b/turtleblocks.py index 98d89d9..7f0ca8f 100755 --- a/turtleblocks.py +++ b/turtleblocks.py @@ -219,7 +219,8 @@ return %s(self)" % (p, P, P) turtle_canvas=self.turtle_canvas, activity=self, running_sugar=False) self.tw.save_folder = self._abspath # os.path.expanduser('~') - if self.client.get_int(self._HOVER_HELP) == 1: + if hasattr(self, 'client') and \ + self.client.get_int(self._HOVER_HELP) == 1: self.hover.set_active(False) self._do_hover_help_off_cb(None) -- cgit v0.9.1