|
@ -53,15 +53,14 @@ class EuroExchangeBotJob(): |
|
|
|
|
|
|
|
|
class EuroExchangeBot( pywikibot.bot.BaseBot ): |
|
|
class EuroExchangeBot( pywikibot.bot.BaseBot ): |
|
|
|
|
|
|
|
|
base_dir = os.path.dirname(os.path.realpath(__file__)) + "/.." |
|
|
base_dir = os.path.expanduser(jogobot.config["euroexchange"]["base_dir"]) |
|
|
working_dir = os.path.dirname(os.path.realpath(__file__)) + "/../wdir" |
|
|
working_dir = os.path.join( base_dir, "working_dir" ) |
|
|
gnuplot_script_dir = os.path.dirname(os.path.realpath(__file__)) + \ |
|
|
gnuplot_script_dir = os.path.join(base_dir, "gnuplot_scripts") |
|
|
"/../gnuplot_scripts" |
|
|
gnuplot = jogobot.config["euroexchange"]["gnuplot_bin"] |
|
|
gnuplot = "/usr/bin/gnuplot" |
|
|
data_source = jogobot.config["euroexchange"]["data_source"] |
|
|
data_source = "http://www.ecb.int/stats/eurofxref/eurofxref-hist.zip" |
|
|
zip_file = jogobot.config["euroexchange"]["data_zip_filename"] |
|
|
zip_file = "eurofxref-hist.zip" |
|
|
csv_file = jogobot.config["euroexchange"]["data_csv_filename"] |
|
|
csv_file = "eurofxref-hist.csv" |
|
|
upload_comment = jogobot.config["euroexchange"]["upload_comment"] |
|
|
upload_comment = "Bot: ([[User:JogoBot/Euroexchange|euroexchange]]) update chart" |
|
|
|
|
|
|
|
|
|
|
|
def __init__( self, genFactory, **kwargs ): |
|
|
def __init__( self, genFactory, **kwargs ): |
|
|
|
|
|
|
|
|