Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FreeSMS.py #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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
FreeSMS.py Show resolved Hide resolved
FreeSMS.py Show resolved Hide resolved
FreeSMS.py Show resolved Hide resolved
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 !

FreeSMS.py Show resolved Hide resolved
FreeSMS.py Show resolved Hide resolved
FreeSMS.py Show resolved Hide resolved
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