diff src/core/constants.py @ 2105:c96fe007ca41

core(constants): added a constant for profile extension (PLUGIN_EXT): this constant may be modified if needed, which is the case on Android (it's modified by Cagou service's main.py), so platform detection is not needed anymore in sat_main.py.
author Goffi <goffi@goffi.org>
date Sun, 25 Dec 2016 16:43:56 +0100
parents 0931b5a6213c
children 85f3e12e984d
line wrap: on
line diff
--- a/src/core/constants.py	Sat Dec 24 14:08:21 2016 +0100
+++ b/src/core/constants.py	Sun Dec 25 16:43:56 2016 +0100
@@ -35,11 +35,14 @@
     APP_URL = u'http://salut-a-toi.org'
 
 
-    # Main config ##
+    ## Runtime ##
+    PLUGIN_EXT = "py"
+
+    ## Main config ##
     DEFAULT_BRIDGE = 'dbus'
 
 
-    # Protocol
+    ## Protocol ##
     XMPP_C2S_PORT = 5222
     XMPP_KEEP_ALIFE = 180
     XMPP_MAX_RETRIES = 2