[gedit] snippets: fix error trying to use variable that is not assigned
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] snippets: fix error trying to use variable that is not assigned
- Date: Fri, 22 Aug 2014 15:30:53 +0000 (UTC)
commit 29524bd8c578768b08d6b93a3fdd8709f8a78a4b
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Aug 22 17:30:16 2014 +0200
snippets: fix error trying to use variable that is not assigned
plugins/snippets/snippets/appactivatable.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/snippets/snippets/appactivatable.py b/plugins/snippets/snippets/appactivatable.py
index aae3686..6ebf00d 100644
--- a/plugins/snippets/snippets/appactivatable.py
+++ b/plugins/snippets/snippets/appactivatable.py
@@ -90,14 +90,14 @@ class AppActivatable(GObject.Object, Gedit.AppActivatable):
self.css)
def system_dirs(self):
+ dirs = []
+
if platform.system() != 'Windows':
if 'XDG_DATA_DIRS' in os.environ:
datadirs = os.environ['XDG_DATA_DIRS']
else:
datadirs = '/usr/local/share' + os.pathsep + '/usr/share'
- dirs = []
-
for d in datadirs.split(os.pathsep):
d = os.path.join(d, 'gedit', 'plugins', 'snippets')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]