Skip to content
Snippets Groups Projects
Commit b8d937c9 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

fixed module path location

parent 1d46246e
No related branches found
No related tags found
1 merge request!2Release version for v2.0.0 container
......@@ -92,14 +92,14 @@ if __name__ == "__main__":
## Create our install prefix if needed and ensure it is writable
args.prefix = os.path.abspath(args.prefix)
if not args.module_path:
args.module_path = '{}/etc/modulefiles'.format(args.prefix)
args.module_path = os.path.abspath('{}/../../etc/modulefiles'.format(args.prefix))
print('Install prefix:', args.prefix)
print('Creating install prefix if needed...')
bindir = '{}/bin'.format(args.prefix)
libdir = '{}/lib'.format(args.prefix)
libexecdir = '{}/libexec'.format(args.prefix)
root_prefix = os.path.abspath('{}/..'.format(args.prefix))
moduledir = '{}/etc/modulefiles/{}'.format(root_prefix, PROJECT_NAME)
moduledir = '{}/{}'.format(args.module_path, PROJECT_NAME)
for dir in [bindir, libdir, libexecdir, moduledir]:
print(' -', dir)
smart_mkdir(dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment