support directory in export_path
This commit is contained in:
parent
a6d16b9c55
commit
16b8878717
1 changed files with 5 additions and 1 deletions
|
@ -24,7 +24,11 @@ def _get_export() -> Path:
|
||||||
# fallback to my_configuration
|
# fallback to my_configuration
|
||||||
from . import paths
|
from . import paths
|
||||||
export_path = paths.twitter.export_path
|
export_path = paths.twitter.export_path
|
||||||
return Path(export_path)
|
p = Path(export_path)
|
||||||
|
if p.is_dir():
|
||||||
|
return max(p.glob('*.zip'))
|
||||||
|
else:
|
||||||
|
return p
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue