Skip to content

Commit

Permalink
feat: Add support for the portable version of maya, which can be foun…
Browse files Browse the repository at this point in the history
…d by adding the MAYA_LOCATION environment variable.

Signed-off-by: liujingjing <[email protected]>
  • Loading branch information
liujingjing committed May 9, 2024
1 parent a6519fb commit 4df8142
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: UTF-8 -*-
import re
import sys
import shutil

import nox
Expand Down Expand Up @@ -217,7 +215,11 @@ def dynamic_session(session: nox.Session):
# Dynamic to set up nox sessions for Maya 2018-2026.
# For example, to run tests for Maya 2018, run:
# nox -s maya-2018
maya_version = re.findall(r"\d+", sys.argv[-1])[-1]

parser = argparse.ArgumentParser()
parser.add_argument('-s')
args = parser.parse_args()
maya_version = "".join(filter(str.isdigit, args.s))
root = _setup_maya(maya_version)
if root:
bin_root = Path(root).joinpath("bin")
Expand Down

0 comments on commit 4df8142

Please sign in to comment.