Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--isolated doesn't like system commands not being present #68

Closed
mottosso opened this issue Jul 18, 2019 · 0 comments
Closed

--isolated doesn't like system commands not being present #68

mottosso opened this issue Jul 18, 2019 · 0 comments
Labels

Comments

@mottosso
Copy link
Owner

mottosso commented Jul 18, 2019

An edgecase; on a Windows system where cmd or powershell is not available on PATH, or likewise for bash on a Linux system, --isolated throws the following error.

Traceback (most recent call last):
  File "c:\python\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python\Python37\Scripts\rez.exe\__main__.py", line 9, in <module>
  File "c:\python\python37\lib\site-packages\rez\cli\_main.py", line 196, in run
    environ = isolated_environment()
  File "c:\python\python37\lib\site-packages\rez\cli\_main.py", line 147, in isolated_environment
    whichdir("cmd"),
  File "c:\python\python37\lib\site-packages\rez\cli\_main.py", line 143, in whichdir
    return os.path.dirname(which(exe))
  File "c:\python\python37\lib\ntpath.py", line 221, in dirname
    return split(p)[0]
  File "c:\python\python37\lib\ntpath.py", line 183, in split
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant