- Add\Rework UI - Add Split Table and Listing - Add Support Customazeble schems
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
"""md2gost — Markdown → DOCX (MIREA TZ / GOST)."""
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def package_dir() -> str:
|
||||
"""Directory of the md2gost package (Template.docx, mml2omml, etc.)."""
|
||||
if getattr(sys, "frozen", False):
|
||||
meipass = getattr(sys, "_MEIPASS", None)
|
||||
if meipass:
|
||||
bundled = os.path.join(meipass, "md2gost")
|
||||
if os.path.isfile(os.path.join(bundled, "Template.docx")):
|
||||
return bundled
|
||||
if os.path.isfile(os.path.join(meipass, "Template.docx")):
|
||||
return meipass
|
||||
return os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
Reference in New Issue
Block a user