Skip to content

Commit d94c9ce

Browse files
committed
patch from victzhang to fix issue GeditSourceCodePlugin#25
1 parent b009544 commit d94c9ce

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

sourcecodebrowser.plugin

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Plugin]
2-
Loader=python
2+
Loader=python3
33
Module=sourcecodebrowser
44
IAge=3
55
Name=Source Code Browser

sourcecodebrowser/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
import sys, os
2+
3+
path = os.path.dirname(__file__)
4+
5+
if not path in sys.path:
6+
sys.path.insert(0, path)
7+
18
import plugin
29
from plugin import SourceCodeBrowserPlugin
310

11+

sourcecodebrowser/ctags.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def parse(self, command, executable=None):
8888
#args = [arg.replace('%20', ' ') for arg in shlex.split(command)]
8989
args = shlex.split(command)
9090
p = subprocess.Popen(args, 0, shell=False, stdout=subprocess.PIPE, executable=executable)
91-
symbols = self._parse_text(p.communicate()[0])
91+
symbols = self._parse_text(p.communicate()[0].decode("utf-8"))
9292

9393
def _parse_text(self, text):
9494
"""

0 commit comments

Comments
 (0)