Skip to content

Commit

Permalink
small update to install.py output to show exe/pkg paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ajohns committed May 25, 2020
1 parent ee978e3 commit 89d9f3f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,24 @@ def install(dest_dir, print_welcome=False):
# done
if print_welcome:
print()
print("SUCCESS! To activate Rez, add the following path to $PATH:")
print("SUCCESS!")
rez_exe = os.path.realpath(os.path.join(dest_bin_dir, "rez"))
print("Rez executable installed to: %s" % rez_exe)

try:
out = subprocess.check_output([
rez_exe,
"python",
"-c",
"import rez; print(rez.__path__[0])"
])
pkg_path = os.path.realpath(out.strip())
print("Rez python package installed to: %s" % pkg_path)
except:
pass # just in case there's an issue with rez-python tool

print()
print("To activate Rez, add the following path to $PATH:")
print(dest_bin_dir)

if completion_path:
Expand Down

0 comments on commit 89d9f3f

Please sign in to comment.