Update 0.4.0
Python application / build (push) Has been cancelled

- Add\Rework UI
- Add Split Table and Listing
- Add Support Customazeble schems
This commit is contained in:
Igor20264
2026-09-04 22:28:39 +03:00
parent 516abe7b83
commit b38661f588
70 changed files with 69532 additions and 413 deletions
+9
View File
@@ -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__))