Skip to content

Conversation

@DarkCoocky
Copy link

Finalisation du portage en python 3, ajout de la compatibilité avec un environnement windows. Ajout de messages d'aides adaptés à la plateforme sur laquelle le script tourne.
Fonctionnement OK en python 3.9.2 dans windows.
Fonctionnement OK en python 3.8.5 dans WSL Ubuntu 20.04

Finalisation du portage en python 3, ajout de la compatibilité avec un environnement windows. Ajout de messages d'aides adaptés à la plateforme sur laquelle le script tourne.
Fonctionnement OK en python 3.9.2 dans windows.
Fonctionnement OK en python 3.8.5 dans WSL Ubuntu 20.04
@Naereen
Copy link
Owner

Naereen commented Apr 5, 2021

Merci @DarkCoocky, je vais regarder !

@Naereen Naereen self-assigned this Apr 5, 2021
variable = variable[:-1]
return variable
if Platform == "win32":
with open("C:\\Users\\"+Uname+"\\.smsapifreemobile_" + name + number + ".b64") as f:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il faut factoriser ces deux morceaux, et écrire une fonction qui va récupérer le dit fichier, plutôt qu'écrire deux fois le test avec Platform == "win32".

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Créer une fonction du type "OpenWinSpecialFile" et "TestWinSpecialFile" ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Par exemple, oui !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants