Skip to content

Commit d48a485

Browse files
Update set_path for MRtrix3Tissue user experience
This should help users migrating from an existing MRtrix3 installation, or hopefully avoid confusion in general. While it should always be clear to them that MRtrix3Tissue is an MRtrix3 fork (e.g. in GitHub repository description, as well as overt GitHub forking network), they might appreciate some hints that they've successfully installed and are then running MRtrix3Tissue. The PATH is one such place to avoid confusion at all costs.
1 parent 7c09777 commit d48a485

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

set_path

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env python
22

3-
# automatically set the PATH environment variable to include the MRtrix3
3+
# automatically set the PATH environment variable to include the MRtrix3Tissue
44
# executables and scripts. This script must be run after a successful build,
5-
# from the MRtrix3 toplevel folder:
5+
# from the MRtrix3Tissue toplevel folder:
66
#
77
# ./set_path
88
#
@@ -30,12 +30,12 @@ if not os.path.isfile (os.path.join(basedir, 'bin', 'mrinfo')):
3030
basedir = os.path.dirname (os.path.abspath(__file__))
3131
if not os.path.isfile (os.path.join(basedir, 'bin', 'mrinfo')):
3232
print ('''
33-
ERROR: MRtrix3 executables not found in expected location.
33+
ERROR: MRtrix3Tissue executables not found in expected location.
3434
35-
This script needs to be run from within the MRtrix3 toplevel directory, AND
36-
after the build script has successfully completed. In addition, the set_path
37-
script should NOT be moved from its original location in the MRtrix3 toplevel
38-
directory.
35+
This script needs to be run from within the MRtrix3Tissue toplevel directory,
36+
AND after the build script has successfully completed. In addition, the
37+
set_path script should NOT be moved from its original location in the
38+
MRtrix3Tissue toplevel directory.
3939
''')
4040
sys.exit (1)
4141

@@ -55,7 +55,7 @@ if len(sys.argv) == 2:
5555

5656

5757
# what will be written to file:
58-
comment='# MRtrix3 PATH automatically generated by set_path script - do NOT modify:\n'
58+
comment='# MRtrix3Tissue PATH automatically generated by set_path script (DO NOT MODIFY):\n'
5959
set_path = 'export PATH="' + os.path.join(basedir, 'bin') + os.pathsep + '$PATH"\n'
6060

6161

@@ -77,7 +77,7 @@ You will need to manually edit the relevant file "''' + filename + '''" in
7777
one of two ways:
7878
7979
1. Amend the existing file contents, so that PATH is correctly updated to
80-
include MRtrix3 binaries and scripts.
80+
include MRtrix3Tissue binaries and scripts.
8181
8282
2. Remove the text that was previously added to the file by this script, and
8383
then run the set_path script again. The offending text is the following line

0 commit comments

Comments
 (0)