digicode: secrets_new est dans gestion
Si ça fonctionnait jusque là, c'est qu'il doit se passer des trucs crades avec le sys.path dans les scripts qui importent ce fichier.
This commit is contained in:
parent
8147952551
commit
ad335866ea
1 changed files with 3 additions and 2 deletions
|
@ -33,9 +33,10 @@ import commands
|
||||||
import string
|
import string
|
||||||
import random
|
import random
|
||||||
import requests
|
import requests
|
||||||
sys.path.append("/usr/scripts/")
|
if not '/usr/scripts' in sys.path:
|
||||||
|
sys.path.append("/usr/scripts")
|
||||||
import cranslib.utils.files
|
import cranslib.utils.files
|
||||||
import secrets_new
|
import gestion.secrets_new as secrets_new
|
||||||
|
|
||||||
digicode_pass = secrets_new.get("digicode_pass")
|
digicode_pass = secrets_new.get("digicode_pass")
|
||||||
# #############################################################
|
# #############################################################
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue