Choix du répertoire de téléchargement temporaire #2

Closed
opened 2022-12-07 02:02:18 +01:00 by remace07 · 5 comments
Collaborator

en: for instance, the content is downloaded in the project directory by default. my suggestion is to allow user to provide a destination directory in the CLI command.

this would make a user able to use a command alias from any directory and downloading the data to a parametered directory, or by default in the current working directory.


fr: pour l'instant, le contenu est téléchargé par défaut dans le répertoire du projet. ma suggestion serait de rajouter un paramètre dans la commande CLI permettant de choisir un autre dossier de destination.

ça permettrait à un utilisateur d'utiliser le script au travers d'un alias depuis n'importe quel répertoire, et de télécharger dans un autre, donné en paramètre, ou par défaut dans le répertoire de travail courant.

en: for instance, the content is downloaded in the project directory by default. my suggestion is to allow user to provide a destination directory in the CLI command. this would make a user able to use a command alias from any directory and downloading the data to a parametered directory, or by default in the current working directory. ----- fr: pour l'instant, le contenu est téléchargé par défaut dans le répertoire du projet. ma suggestion serait de rajouter un paramètre dans la commande CLI permettant de choisir un autre dossier de destination. ça permettrait à un utilisateur d'utiliser le script au travers d'un alias depuis n'importe quel répertoire, et de télécharger dans un autre, donné en paramètre, ou par défaut dans le répertoire de travail courant.
Owner

Bien vu, ça se fera bien aec l'ajout d'argparse mentionné dans fcode/delarte#1

Bien vu, ça se fera bien aec l'ajout d'[`argparse`](https://docs.python.org/3/library/argparse.html) mentionné dans fcode/delarte#1
freezed changed title from [suggestion] download directory to Choix du répertoire de téléchargement temporaire 2022-12-08 17:42:45 +01:00
freezed added this to the devel project 2022-12-08 17:44:42 +01:00
Collaborator

This as been partially addressed in the packaged version of the script. Once the package is pip-installed on your system, you might call the script from any location using

$ python -m delarte ....

or directly

$ delarte ....

The output file will be placed in the current directory.

This as been partially addressed in the packaged version of the script. Once the package is pip-installed on your system, you might call the script from any location using `$ python -m delarte ....` or directly `$ delarte ....` The output file will be placed in the current directory.
Owner

Please mention the last branch, merge request or commit with the implementation related to this isse and close this issue if necessary

A good practice is to mention this issue in the commit message to ease following-up

Please mention the last branch, merge request or commit with the implementation related to this isse and close this issue if necessary A good practice is to mention this issue in the commit message to ease following-up
Collaborator

Commit: 9593619c68

"A good practice is to mention this issue in the commit message to ease following-up" => wilco.

Commit: 9593619c68 "A good practice is to mention this issue in the commit message to ease following-up" => wilco.
Owner

Hi @remace07 , like on #1 it looks good for me too, see at line 48

If we are missing something, feel free to re-open this issue or open a new one related with this one.

Hi @remace07 , like on #1 it looks good for me too, see [at line 48](https://git.afpy.org/fcode/delarte/src/commit/9593619c68f31956eb9c8ea573fb53df9290fb16/README.md?display=source#L48) If we are missing something, feel free to re-open this issue or open a new one related with this one.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fcode/delarte#2
No description provided.