File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,19 +67,19 @@ def contents(contents_dir):
67
67
nb = writes (new_notebook (), version = 4 )
68
68
nbname = p .joinpath ('{}.ipynb' .format (name ))
69
69
nbname .write_text (nb , encoding = 'utf-8' )
70
- paths ['notebooks' ].append (nbname )
70
+ paths ['notebooks' ].append (nbname . relative_to ( contents_dir ) )
71
71
72
72
# Create a text file
73
73
txt = '{} text file' .format (name )
74
74
txtname = p .joinpath ('{}.txt' .format (name ))
75
75
txtname .write_text (txt , encoding = 'utf-8' )
76
- paths ['textfiles' ].append (txtname )
76
+ paths ['textfiles' ].append (txtname . relative_to ( contents_dir ) )
77
77
78
78
# Create a random blob
79
79
blob = name .encode ('utf-8' ) + b'\xFF '
80
80
blobname = p .joinpath ('{}.blob' .format (name ))
81
81
blobname .write_bytes (blob )
82
- paths ['blobs' ].append (blobname )
82
+ paths ['blobs' ].append (blobname . relative_to ( contents_dir ) )
83
83
paths ['all' ] = list (paths .values ())
84
84
return paths
85
85
You can’t perform that action at this time.
0 commit comments