-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afb63c6
commit fd84d3a
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,29 @@ | ||
from .cmanimpango import * | ||
from .register_font import * | ||
# -*- coding: utf-8 -*- | ||
import os | ||
import sys | ||
|
||
from ._version import __version__ # noqa: F403,F401 | ||
|
||
if os.name == "nt": # pragma: no cover | ||
os.environ["PATH"] = ( | ||
f"{os.path.abspath(os.path.dirname(__file__))}" | ||
f"{os.pathsep}" | ||
f"{os.environ['PATH']}" | ||
) | ||
try: | ||
from .cmanimpango import * # noqa: F403,F401 | ||
from .register_font import * # noqa: F403,F401 | ||
except ImportError as ie: # pragma: no cover | ||
py_ver = ".".join(map(str, sys.version_info[:3])) | ||
msg = f""" | ||
ManimPango could not import and load the necessary shared libraries. | ||
This error may occur when ManimPango and its dependencies are improperly set up. | ||
Please make sure the following versions are what you expect: | ||
* ManimPango v{__version__}, Python v{py_ver} | ||
If you believe there is a greater problem, | ||
feel free to contact us or create an issue on GitHub: | ||
* Discord: https://www.manim.community/discord/ | ||
* GitHub: https://github.com/ManimCommunity/ManimPango/issues | ||
Original error: {ie} | ||
""" | ||
raise ImportError(msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
__version__ = "0.1.0" | ||
# -*- coding: utf-8 -*- | ||
__version__ = "0.4.0.post2" |