Skip to content

Commit 41826a6

Browse files
committed
Fix path error
1 parent c79c78c commit 41826a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

python_voice_coding_plugin.py

+8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
import os
2+
import sys
3+
14
import sublime
25
import sublime_plugin
36

7+
# making sure our dependencies are in the path
8+
sys.path.insert(0,os.path.join(os.path.dirname(__file__), 'third_party'))
9+
410
from PythonVoiceCodingPlugin.interface.interface import Interface
511

12+
# removing our dependencies from the path so as not to interfere with other packages
13+
sys.path.remove(os.path.join(os.path.dirname(__file__), 'third_party'))
614

715
class PythonVoiceCodingPluginCommand(sublime_plugin.TextCommand):
816
def run(self, edit,arg):

0 commit comments

Comments
 (0)