make python package and build up class model

This commit is contained in:
chrys
2016-07-07 19:43:31 +02:00
parent 74a4341436
commit a0c936d1e9
23 changed files with 404 additions and 0 deletions

31
src/fenrir-package/fenrir.py Executable file
View File

@@ -0,0 +1,31 @@
#!/bin/python
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
import os, sys
if not os.getcwd() in sys.path:
sys.path.append(os.getcwd())
from core import environment
from utils import debug
from speech import espeak as es
from speech import speechd as sd
from screen import linux as lx
class fenrir():
def __init__(self):
self.runtime = environment.runtime
self.runtime['speechDriverString'] = 'speechd'
self.runtime['speechDriver'] = sd.speech()
self.runtime['screenDriverString'] = 'linux'
self.runtime['screenDriver'] = lx.screenManager()
def proceed(self):
while(self.runtime['running']):
self.runtime = self.runtime['screenDriver'].analyzeScreen(self.runtime)
app = fenrir()
app.proceed()