Преглед изворни кода

Fixing references to the config file

tags/v0.1^2
Ben Kurtovic пре 12 година
родитељ
комит
8f193c9953
3 измењених фајлова са 4 додато и 4 уклоњено
  1. +1
    -1
      earwigbot/config.py
  2. +1
    -1
      earwigbot/runner.py
  3. +2
    -2
      earwigbot/wiki/functions.py

+ 1
- 1
earwigbot/config.py Прегледај датотеку

@@ -110,7 +110,7 @@ class _BotConfig(object):
filename = self._config_path
with open(filename, 'r') as fp:
try:
self._data = yml.load(fp)
self._data = yaml.load(fp)
except yaml.YAMLError as error:
print "Error parsing config file {0}:".format(filename)
print error


+ 1
- 1
earwigbot/runner.py Прегледај датотеку

@@ -44,7 +44,7 @@ def run():
from earwigbot import main

root_dir = raw_input()
config_path = path.join(root_dir, "config.json")
config_path = path.join(root_dir, "config.yml")
log_dir = path.join(root_dir, "logs")
is_encrypted = config.load(config_path, log_dir)
if is_encrypted:


+ 2
- 2
earwigbot/wiki/functions.py Прегледај датотеку

@@ -63,8 +63,8 @@ def _get_cookiejar():
one is returned every time.

The .cookies file is located in the project root, same directory as
config.json and earwigbot.py. If it doesn't exist, we will create the file
and set it to be readable and writeable only by us. If it exists but the
config.yml and bot.py. If it doesn't exist, we will create the file and set
it to be readable and writeable only by us. If it exists but the
information inside is bogus, we will ignore it.

This is normally called by _get_site_object_from_dict() (in turn called by


Loading…
Откажи
Сачувај