Changes
Page history
Update "port database" to correctly create the file structure
authored
Apr 04, 2022
by
Yannick DAYER
Show whitespace changes
Inline
Side-by-side
How-to-port-old-bob-database-interface-to-the-new-csv-format.md
View page @
6e37af0d
...
...
@@ -94,7 +94,7 @@ def convert_database(database, output, protocols, groups, **kwargs):
# create the final tarball
path
=
f
"
{
output
}
.tar.gz
"
with
tarfile
.
open
(
path
,
"
w:gz
"
)
as
tar
:
tar
.
add
(
output
,
arcname
=
"
.
"
)
tar
.
add
(
output
,
arcname
=
database
.
name
)
click
.
echo
(
f
"
Created
{
path
}
"
)
...
...
@@ -215,7 +215,7 @@ def convert_replaymobile_to_csv():
# Create the final tarball
path
=
f
"
bio-face-replaymobile-img.tar.gz
"
with
tarfile
.
open
(
path
,
"
w:gz
"
)
as
tar
:
tar
.
add
(
"
replaymobile-img
"
,
arcname
=
"
.
"
)
tar
.
add
(
"
replaymobile-img
"
,
arcname
=
database
.
name
)
print
(
f
"
Created
'
{
path
}
'
.
"
)
...
...
...
...