Skip to content

Commit

Permalink
Revert files
Browse files Browse the repository at this point in the history
  • Loading branch information
YishiMichael committed Feb 26, 2022
1 parent afb63c6 commit fd84d3a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
31 changes: 29 additions & 2 deletions manimpango/__init__.py
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)
3 changes: 2 additions & 1 deletion manimpango/_version.py
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"

0 comments on commit fd84d3a

Please sign in to comment.