mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
15 lines
394 B
Python
15 lines
394 B
Python
# -*- coding: utf-8 -*-
|
|
import os
|
|
import sys
|
|
|
|
# this might happen in some 3dsmax version where PYTHONPATH isn't added
|
|
# to sys.path automatically
|
|
for path in os.environ["PYTHONPATH"].split(os.pathsep):
|
|
if path and path not in sys.path:
|
|
sys.path.append(path)
|
|
|
|
from openpype.hosts.max.api import MaxHost
|
|
from openpype.pipeline import install_host
|
|
|
|
host = MaxHost()
|
|
install_host(host)
|