ecrespo avatar ecrespo committed 75a332f

Agregado el módulo variables y sustituída la ruta del archivo config-sms.conf por la variable config_file

Comments (0)

Files changed (3)

 import pysms_config
 import csv
 import pysms_bd
+from variables import config_file
 from time import sleep
 try:
     _fromUtf8 = QtCore.QString.fromUtf8
     def __init__(self, parent=None):
         QtGui.QWidget.__init__(self, parent)
         self.ui = Ui_pysms()
-        self.configuracion = pysms_config.config("/home/ernesto/proyectos/pysms-send/src/config-sms.conf")
+        self.configuracion = pysms_config.config(config_file)
         self.__dispositivos = self.configuracion.ShowValueItem("celulares","soportados").split(",")
         
          
 from sqlalchemy import *
 import pysms_config
 from pysms_crearBD import *
-
-
+from variables import config_file
 
 def InsertarCelulares(Nombre,cedula,Numero,DescripcionLista):
-    configuracion = pysms_config.config("/home/ernesto/proyectos/pysms-send/src/config-sms.conf")
+    configuracion = pysms_config.config(config_file)
     nombre = configuracion.ShowValueItem("basedatos","nombre")
     engine = create_engine('sqlite:///%s' %nombre,echo=True)
     metadata = MetaData(bind=engine)

src/pysms_crearBD.py

 
 from sqlalchemy import *
 import pysms_config
+from variables import config_file
 
-configuracion = pysms_config.config("/home/ernesto/proyectos/pysms-send/src/config-sms.conf")
+configuracion = pysms_config.config(config_file)
 nombre = configuracion.ShowValueItem("basedatos","nombre")
 engine = create_engine('sqlite:///%s' %nombre,echo=False)
 metadata = MetaData(bind=engine)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.