Ingest Maya usersetup

This commit is contained in:
Toke Stuart Jepsen 2023-10-09 18:26:29 +01:00
parent ca1492c839
commit 31ffb5e826
2 changed files with 34 additions and 8 deletions

View file

@ -33,16 +33,16 @@ class MayaHostFixtures(HostFixtures):
yield dest_path
@pytest.fixture(scope="module")
def startup_scripts(self, monkeypatch_session, download_test_data):
def startup_scripts(self, monkeypatch_session):
"""Points Maya to userSetup file from input data"""
startup_path = os.path.join(download_test_data,
"input",
"startup")
startup_path = os.path.join(
os.path.dirname(__file__), "input", "startup"
)
original_pythonpath = os.environ.get("PYTHONPATH")
monkeypatch_session.setenv("PYTHONPATH",
"{}{}{}".format(startup_path,
os.pathsep,
original_pythonpath))
monkeypatch_session.setenv(
"PYTHONPATH",
"{}{}{}".format(startup_path, os.pathsep, original_pythonpath)
)
@pytest.fixture(scope="module")
def skip_compare_folders(self):