Commit 017d070b authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

MNT: create both funpack and fmrib_unpack exes when generating notebook

parent b827d58f
......@@ -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('fmrib_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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment