diff options
author | diSabler <dissy@ya.ru> | 2014-02-01 17:28:28 +0400 |
---|---|---|
committer | diSabler <dissy@ya.ru> | 2014-02-01 17:28:28 +0400 |
commit | 6ac39ef6a07c07bf885380cb5a64ef037a4df387 (patch) | |
tree | 1c13908ab3681f4789925c34186a3f5aa7752ce3 | |
parent | 8b37ea34c95a6c7faf63d9b0d797105d30ac6a56 (diff) |
fix: config for url list
-rw-r--r-- | data/url/example_config.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/data/url/example_config.py b/data/url/example_config.py index 3a9d368..2cfc302 100644 --- a/data/url/example_config.py +++ b/data/url/example_config.py @@ -21,9 +21,8 @@ # #
# --------------------------------------------------------------------------- #
-# Path to iSida-bot config file
-configname = '/home/user/isida/settings/config.py'
-execfile(configname)
+# Path to iSida-bot
+BOT_FOLDER = '/home/user/isida/%s'
# Maximal link and description size
max_link_size = 64
@@ -31,4 +30,10 @@ max_link_size = 64 # Url per page
url_count_limit = 100
+
+# Don't change it
+configname = BOT_FOLDER % 'settings/config.py'
+execfile(configname)
+if base_type == 'sqlite3': sqlite_base = BOT_FOLDER % sqlite_base
+
# The end is near!
|