Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbb
modulefiles
Commits
bb18f6c2
Commit
bb18f6c2
authored
Jun 18, 2021
by
remy
Browse files
3.8 catch tcl exception while executing exec ... guix
parent
ebe26f0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
envfiles/python/3.8
View file @
bb18f6c2
#%Module######################################################################
#
# python3.8 modulefile 20210616
# last update! 20210618
#
proc ModulesHelp { } {
...
...
@@ -22,8 +23,10 @@ setenv GUIX_PROFILE $GUIX_PROFILE
conflict python/3.6 python/2.7
exec sh -c "/usr/local/bin/guix install python@3.8 2>/dev/null"
#exec sh -c . ${GUIX_PROFILE}"/etc/profile
if {[catch {exec sh -c "/usr/local/bin/guix install python@3.8 2>/dev/null"} result]} {
puts "problem in executing guix"
puts "Reason : $result"
}
if { [module-info mode load] || [module-info mode switch2] } {
puts stdout "Please source your guix profile with:\nsource ${GUIX_PROFILE}/etc/profile;"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment