diff --git a/plugin/al/plugin/AL_USDMayaTestPlugin/py/testProxyShape.py b/plugin/al/plugin/AL_USDMayaTestPlugin/py/testProxyShape.py index 5e3c9935bc..025f6ecc7d 100755 --- a/plugin/al/plugin/AL_USDMayaTestPlugin/py/testProxyShape.py +++ b/plugin/al/plugin/AL_USDMayaTestPlugin/py/testProxyShape.py @@ -48,8 +48,7 @@ def tearDownClass(cls): def setUp(self): unittest.TestCase.setUp(self) - self.workingDir = os.path.abspath(type(self).__name__) - os.mkdir(self.workingDir) + self.workingDir = os.environ.get('MAYA_APP_DIR') cmds.file(new=True, save=False, force=True) cmds.loadPlugin("AL_USDMayaPlugin", quiet=True) self.assertTrue(cmds.pluginInfo("AL_USDMayaPlugin", query=True, loaded=True)) diff --git a/test/lib/usd/translators/testUsdImportEulerFilter.py b/test/lib/usd/translators/testUsdImportEulerFilter.py index 88984ed6aa..41eca28622 100644 --- a/test/lib/usd/translators/testUsdImportEulerFilter.py +++ b/test/lib/usd/translators/testUsdImportEulerFilter.py @@ -68,11 +68,12 @@ class testUsdImportEulerFilter(unittest.TestCase): def setUpClass(cls): inputPath = fixturesUtils.setUpClass(__file__) - cls.skel_file = os.path.join(inputPath, "UsdImportEulerFilterTest", "UsdImportEulerFilterTest_skel.usda") + tempTestPath = os.environ.get('MAYA_APP_DIR') + cls.skel_file = os.path.join(tempTestPath, "UsdImportEulerFilterTest", "UsdImportEulerFilterTest_skel.usda") build_skel_scene(cls.skel_file) - cls.xform_file = os.path.join(inputPath, "UsdImportEulerFilterTest", "UsdImportEulerFilterTest_xform.usda") + cls.xform_file = os.path.join(tempTestPath, "UsdImportEulerFilterTest", "UsdImportEulerFilterTest_xform.usda") build_xform_scene(cls.xform_file) def test_skel_rotation_fail(self):