Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sourcecodebrowser.plugin
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Plugin]
Loader=python
Loader=python3
Module=sourcecodebrowser
IAge=3
Name=Source Code Browser
Expand Down
8 changes: 8 additions & 0 deletions sourcecodebrowser/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import sys, os

path = os.path.dirname(__file__)

if not path in sys.path:
sys.path.insert(0, path)

import plugin
from plugin import SourceCodeBrowserPlugin


2 changes: 1 addition & 1 deletion sourcecodebrowser/ctags.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def parse(self, command, executable=None):
#args = [arg.replace('%20', ' ') for arg in shlex.split(command)]
args = shlex.split(command)
p = subprocess.Popen(args, 0, shell=False, stdout=subprocess.PIPE, executable=executable)
symbols = self._parse_text(p.communicate()[0])
symbols = self._parse_text(p.communicate()[0].decode("utf-8"))

def _parse_text(self, text):
"""
Expand Down