"-o", "--object-dir", help= """Name of the object output directory that will be used for your ADL project (default is obj). The object directory will be created inside the project directory""", default="obj") args = parser.parse_args() print(description) interactive = not args.script_mode use_default = not args.dont_use_defaults ADL_config = config.Database(interactive, use_default, config.user_input.console) if args.input_config is not None: for f in args.input_config: ADL_config.parse_input_config(f) if args.definitions is not None: for d in args.definitions: key, value = d.partition("=")[::2] print("Add pre definition '%s' => '%s' from command line" % \ (key, value)) ADL_config.pre_define(key, value, "command line") ensure_dir(args.project_dir)
#Créer Par Waldorf Jean-Pierre (c)BelSD (2005-2018) # from __future__ import print_function import RPi.GPIO as GPIO import signal import sys import ConfigParser import time import MySQLdb from time import sleep import config import smbus import spi DataBase = config.Database() LCD_Config = config.LCD() #Connection à la Base de données Db_data = "host='" + DataBase.Host() + "', user='******', passwd='" + DataBase.Pwd() + "', db='" + DataBase.Db() + "'" db = MySQLdb.connect(host=DataBase.Host(), user=DataBase.User(), passwd=DataBase.Pwd(), db=DataBase.Db()) mysql = db.cursor() ####################### ####################### ## ## ## POUR LE PROGRAMME ##
def __init__(self): db_config = config.Database() self.file_name = db_config.name