Skip to content

Commit

Permalink
path test
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyplay committed Feb 21, 2024
1 parent 7611807 commit a0328f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/refact_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
from .refact_lsp import LSP
from .statusbar import StatusBar
from os.path import dirname, realpath

class RefactProcessWrapper():
def __init__(self):
Expand All @@ -23,7 +24,8 @@ def process_server_errors(self):
self.statusbar.update_statusbar("error", line)

def get_server_path(self):
return os.path.join(sublime.packages_path(), "refact", "server", "refact-lsp")
current_dir = dirname(realpath(__file__))
return os.path.join(sublime.packages_path(), current_dir, "server", "refact-lsp")

def get_server_commands(self):
s = sublime.load_settings("refact.sublime-settings")
Expand Down

0 comments on commit a0328f2

Please sign in to comment.