mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
removed ruamel import
This commit is contained in:
parent
a9ce683c86
commit
991c4d9686
1 changed files with 4 additions and 16 deletions
|
|
@ -10,25 +10,13 @@ try:
|
|||
except NameError:
|
||||
StringType = str
|
||||
|
||||
from pype.settings.lib import (
|
||||
get_default_anatomy_settings,
|
||||
get_anatomy_settings
|
||||
)
|
||||
from . import config
|
||||
from .log import PypeLogger
|
||||
|
||||
try:
|
||||
import ruamel.yaml as yaml
|
||||
except ImportError:
|
||||
print("yaml module wasn't found, skipping anatomy")
|
||||
else:
|
||||
directory = os.path.join(
|
||||
os.environ.get("PYPE_ENV", ""), "Lib", "site-packages", "ruamel"
|
||||
)
|
||||
file_path = os.path.join(directory, "__init__.py")
|
||||
if os.path.exists(directory) and not os.path.exists(file_path):
|
||||
print(
|
||||
"{0} found but not {1}. Patching ruamel.yaml...".format(
|
||||
directory, file_path
|
||||
)
|
||||
)
|
||||
open(file_path, "a").close()
|
||||
|
||||
log = PypeLogger().get_logger(__name__)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue