diff --git a/setup.py b/setup.py index ccac5817..b8ef07da 100755 --- a/setup.py +++ b/setup.py @@ -77,7 +77,7 @@ setup( # Packages packages=find_packages('src/'), package_dir={'': 'src/'}, - scripts=['src/fenrir','src/fenrir-daemon'], + scripts=['src/fenrir','src/fenrir-daemon','src/fenrir-pypy','src/fenrir-daemon-pypy'], # Include additional files into the package include_package_data=True, diff --git a/src/fenrir-daemon-pypy b/src/fenrir-daemon-pypy new file mode 100755 index 00000000..363b2b6c --- /dev/null +++ b/src/fenrir-daemon-pypy @@ -0,0 +1,28 @@ +#!/usr/bin/env pypy3 +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +import os, sys, inspect +fenrirPath = os.path.dirname(os.path.realpath(os.path.abspath(inspect.getfile(inspect.currentframe())))) + +if not fenrirPath in sys.path: + sys.path.append(fenrirPath) + +from fenrirscreenreader.core import fenrirManager +from daemonize import Daemonize + +pidFile = "/run/fenrir.pid" + +def main(): + app = fenrirManager.fenrirManager() + app.proceed() + del app + +if __name__ == "__main__": + # for debug in foreground + #daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, foreground=True,chdir=os.path.dirname(os.path.realpath(fenrirVersion.__file__))) + daemon = Daemonize(app="fenrir-daemon", pid=pidFile, action=main, chdir=fenrirPath) + daemon.start() + diff --git a/src/fenrir-pypy b/src/fenrir-pypy new file mode 100755 index 00000000..b2d50a1c --- /dev/null +++ b/src/fenrir-pypy @@ -0,0 +1,21 @@ +#!/usr/bin/env pypy3 +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +import os, sys, inspect +fenrirPath = os.path.dirname(os.path.realpath(os.path.abspath(inspect.getfile(inspect.currentframe())))) + +if not fenrirPath in sys.path: + sys.path.append(fenrirPath) + +from fenrirscreenreader.core import fenrirManager + +def main(): + app = fenrirManager.fenrirManager() + app.proceed() + del app + +if __name__ == "__main__": + main()