fix imports

This commit is contained in:
2025-04-24 16:40:24 +02:00
parent b521caed0f
commit 6379b673fc
2 changed files with 7 additions and 12 deletions

View File

@ -1,3 +1,9 @@
import os, sys, sublime
pkg = os.path.basename(os.path.dirname(__file__))
lib = os.path.join(sublime.packages_path(), pkg, "lib")
if lib not in sys.path:
sys.path.insert(0, lib)
"""
Terminology
original_view: the view in the regular editor, without it's own window
@ -8,9 +14,7 @@ preview_window: the window with the markdown file and the preview
"""
import time
import os.path
import struct
import sublime
import sublime_plugin
from functools import partial