Skip to content

Commit 82ea12e

Browse files
committed
修复package_path有时读取不对的问题
1 parent d582444 commit 82ea12e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Thinkphp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os, json, threading, codecs, re, subprocess, webbrowser
44
from subprocess import PIPE
55

6-
packages_path = sublime.packages_path() + os.sep + 'Thinkphp'
6+
packages_path = os.path.split(os.path.realpath(__file__))[0]
77
query_window = packages_path + os.sep + 'ThinkPHP-CLI.html'
88
query_table = packages_path + os.sep + 'ThinkPHP-Queryer'
99
seperator = '\n###################################################\n\n'
@@ -241,4 +241,4 @@ def run(self, i):
241241
self.addend = 1
242242
i += self.addend
243243

244-
sublime.set_timeout(lambda: self.run(i), 100)
244+
sublime.set_timeout(lambda: self.run(i), 100)

0 commit comments

Comments
 (0)