def main(): logging.basicConfig(level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(message)s", datefmt="%H:%M:%S") rc_file = os.path.join(theme.path, "twolamerc") rc.get_rc(rc_file) if rc.FILESYSTEM == "1": fit1 = SYSTEM(1) fit1.start() if rc.MAIL == "1": fit2 = MAIL(2) fit2.start() if rc.MUSIC == "1": fit4 = MPD(4) fit4.start() if rc.CLOUD == "1": fit5 = CLOUD(5) fit5.start() if rc.AUDIO == "1": fit6 = AUDIO(6) fit6.start() if rc.NET == "1": fit7 = NET(7) fit7.start()
# along with this program; if not, write to the # Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. import os, sys, re import configparser import rc from spam import clouds from spam import beshell from spam import methods rc_file = os.path.join(beshell.Theme.path(), 'twolamerc') format_file = os.path.join(beshell.Theme.path(), 'twolame', 'cloud_one.format') rc.get_rc(rc_file) css = os.path.join(beshell.Theme.path(), 'style.css.d', rc.CSS) cloud_info = [] if rc.RCLONE == '1': parser = configparser.ConfigParser() rclone_cfg = rc.RCLONE_CONFIG_FILE read_cfg = parser.read(rclone_cfg) services_list = [] for item in parser.sections(): service = parser.get(item, 'type')