aboutsummaryrefslogtreecommitdiff
path: root/mensa
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-10-10 12:22:58 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-10-10 12:22:58 +0200
commite556881560d47d1ac79034da99253f1c9c84c92b (patch)
tree5ae8b934d2b4b3f468c466521597c6ebf1628a7c /mensa
parentc9c7d389c45815e1b7abd7bea7dc5093a3630ea2 (diff)
downloadmensa-e556881560d47d1ac79034da99253f1c9c84c92b.tar.gz
mensa-e556881560d47d1ac79034da99253f1c9c84c92b.tar.bz2
mensa-e556881560d47d1ac79034da99253f1c9c84c92b.zip
Added setup.py file for easy installation
Diffstat (limited to 'mensa')
-rwxr-xr-xmensa/logic.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mensa/logic.py b/mensa/logic.py
index b0165f0..d2851d5 100755
--- a/mensa/logic.py
+++ b/mensa/logic.py
@@ -5,10 +5,9 @@ import urllib.error
import os
from yapsy.PluginManager import PluginManager
-
def init_foodsources():
backends = PluginManager()
- backends.setPluginPlaces([os.path.join(os.path.dirname(os.path.realpath(__file__)),"backends")])
+ backends.setPluginPlaces([os.path.join(os.path.dirname(os.path.realpath(__file__)),"backends")])
backends.collectPlugins()
for pluginInfo in backends.getAllPlugins():
backends.activatePluginByName(pluginInfo.name)