new build

This commit is contained in:
2025-04-24 16:49:41 +02:00
parent a9f2f951c0
commit b29d054de2
3 changed files with 18 additions and 7 deletions

View File

@ -1,8 +1,16 @@
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)
import os
import sys
import sublime
# --- Add lib to sys.path ---
# Get the directory containing this file (MarkdownLivePreview.py)
plugin_dir = os.path.dirname(__file__)
# Construct the absolute path to the 'lib' directory
lib_path = os.path.join(plugin_dir, 'lib')
# Add it to the beginning of sys.path if it's not already there
if lib_path not in sys.path:
sys.path.insert(0, lib_path)
# --- End sys.path modification ---
"""
Terminology