mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
fix a bug after packaging
This commit is contained in:
parent
fe85d4e02f
commit
9916f56fb1
1 changed files with 3 additions and 1 deletions
|
@ -134,7 +134,9 @@ def parse_cli():
|
|||
|
||||
|
||||
def get_manim_dir():
|
||||
return os.path.dirname(inspect.getabsfile(importlib.import_module("manim")))
|
||||
manimlib_module = importlib.import_module("manimlib")
|
||||
manimlib_dir = os.path.dirname(inspect.getabsfile(manimlib_module))
|
||||
return os.path.abspath(os.path.join(manimlib_dir, ".."))
|
||||
|
||||
|
||||
def get_module(file_name):
|
||||
|
|
Loading…
Add table
Reference in a new issue