Skip to content

Commit

Permalink
fix: allow executing mdto.py as a script
Browse files Browse the repository at this point in the history
Relative imports are a bit of a mess
  • Loading branch information
rien333 committed Dec 12, 2024
1 parent 1c5cf30 commit b422550
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mdto/mdto.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
from pathlib import Path
from typing import Any, List, TextIO

from . import helpers
try:
from . import helpers # Package context
except ImportError:
import helpers # Direct execution

import lxml.etree as ET
import validators
Expand Down

0 comments on commit b422550

Please sign in to comment.