Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
funpack
Commits
017d070b
Commit
017d070b
authored
Jun 28, 2022
by
Paul McCarthy
🚵
Browse files
MNT: create both funpack and fmrib_unpack exes when generating notebook
parent
b827d58f
Changes
1
Hide whitespace changes
Inline
Side-by-side
funpack/scripts/generate_notebooks.py
View file @
017d070b
...
...
@@ -16,6 +16,7 @@ import os
import
sys
import
json
import
shlex
import
shutil
import
bash_kernel.install
as
bash_kernel_install
...
...
@@ -40,10 +41,11 @@ METADATA = {
def
create_funpack_executable
():
with
open
(
'funpack'
,
'wt'
)
as
f
:
with
open
(
'f
mrib_
unpack'
,
'wt'
)
as
f
:
f
.
write
(
'#!/usr/bin/env bash
\n
'
)
f
.
write
(
f
'
{
sys
.
executable
}
-m funpack "$@"
\n
'
)
os
.
chmod
(
'funpack'
,
0o755
)
os
.
chmod
(
'fmrib_unpack'
,
0o755
)
shutil
.
copyfile
(
'fmrib_unpack'
,
'funpack'
)
def
encode
(
imagefile
):
...
...
Write
Preview
Supports
Markdown
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