@@ -52,6 +52,18 @@ class DescPageBot(pywikibot.bot.Bot):
|
|||||||
# Update wiki page
|
# Update wiki page
|
||||||
self.update_page()
|
self.update_page()
|
||||||
|
|
||||||
|
def load_gnuplot_script(self):
|
||||||
|
"""
|
||||||
|
Load the gnuplot script for current job
|
||||||
|
|
||||||
|
@return Gnuplot script content
|
||||||
|
@rtype str
|
||||||
|
"""
|
||||||
|
|
||||||
|
with open( os.path.join(
|
||||||
|
Config.gnuplot_script_dir, self.job.script + ".plt" ), "r") as fd:
|
||||||
|
return fd.read()
|
||||||
|
|
||||||
def parse_page(self):
|
def parse_page(self):
|
||||||
"""
|
"""
|
||||||
Load current page content and parse with mwparser
|
Load current page content and parse with mwparser
|
||||||
|
|||||||
Reference in New Issue
Block a user