diff options
author | Walter Bender <walter@sugarlabs.org> | 2014-01-18 23:19:32 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2014-01-18 23:19:32 (GMT) |
commit | 4ccfd8cb17e6550c3b489f6ba0367f80642a14be (patch) | |
tree | 6d01eb45a251274370b27347038d49baf101db8f | |
parent | 36f6b06f4d42c4b960ced9abba13371372c0d1cc (diff) |
check to make sure homepath exists
-rw-r--r-- | TurtleArt/tawindow.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index d5948f2..f455f8d 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -387,7 +387,7 @@ class TurtleArtWindow(): homepath = os.path.join(os.path.expanduser('~'), 'Activities', os.path.basename(self.path), _PLUGIN_SUBPATH) paths = [self._get_plugin_home()] - if paths[0] != homepath: + if paths[0] != homepath and os.path.exists(homepath): paths.append(homepath) plist = self._get_plugins_from_plugins_dir(paths) for plugin in plist: |