mirror of
https://github.com/Alex38Lyon/Synthese-PSM_LARRA.git
synced 2026-11-29 19:58:36 +00:00
update
This commit is contained in:
1 parent
03f4da2df4
commit
596596cf98
3 files changed
+72
-5
No files matched your search
@@ -34,8 +34,7 @@ def suivre_transfert(job, verifier, titre: str) -> None:
|
||||
return
|
||||
|
||||
precedent = 0
|
||||
# interactif = sys.stdout.isatty()
|
||||
interactif = sys.stdout.isatty() and sys.stderr.isatty() and bool(os.environ.get("TERM", "")) and os.environ.get("TERM") != "dumb"
|
||||
interactif = sys.stdout.isatty() and sys.stderr.isatty() and os.environ.get("TERM", "").lower() != "dumb"
|
||||
|
||||
if interactif:
|
||||
with alive_bar(taille_totale, title=f"{Colors.YELLOW}{titre}{Colors.ENDC}", stats=True, dual_line=True, scale="SI", unit="o") as barre:
|
||||
@@ -185,8 +184,8 @@ def telecharger_depuis_github(depot: str, branche: str, chemin: str, dossier_cib
|
||||
est_fichier = len(fichiers) == 1 and fichiers[0]["path"] == chemin
|
||||
base = chemin.rpartition("/")[0] if est_fichier else chemin
|
||||
total = sum(f.get("size", 0) for f in fichiers) or None
|
||||
# interactif = sys.stdout.isatty()
|
||||
interactif = sys.stdout.isatty() and sys.stderr.isatty() and bool(os.environ.get("TERM", "")) and os.environ.get("TERM") != "dumb"
|
||||
|
||||
interactif = sys.stdout.isatty() and sys.stderr.isatty() and os.environ.get("TERM", "").lower() != "dumb"
|
||||
precedent = 0
|
||||
|
||||
def telecharger_fichiers(barre=None) -> None:
|
||||
|
||||
Reference in new issue
Block a user