You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
358 B
10 lines
358 B
import subprocess
|
|
from Npp import notepad
|
|
si = subprocess.STARTUPINFO()
|
|
si.dwFlags |= subprocess.STARTF_USESHOWWINDOW
|
|
python_path = subprocess.check_output('where pythonw.exe',startupinfo = si).rstrip()
|
|
script_path = 'query.py'
|
|
result = subprocess.check_output([python_path,script_path]).rstrip()
|
|
# print(result)
|
|
if result != 'None':
|
|
notepad.open(result)
|