summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-07-05 22:08:16 -0500
committerBryan Bishop <kanzure@gmail.com>2013-07-05 22:08:16 -0500
commitdb89d5626467d5a67dad78c10d1d8049f5f514b5 (patch)
treedde55190abdac64de65e5a67e0d68fdf20878ad5
parent576cd0089ff54fc0c5d2231fcb65eff390bb6e80 (diff)
downloadpaperbot-db89d562.tar.gz
paperbot-db89d562.zip
use full paths to modules in phenny
-rw-r--r--modules/papers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/papers.py b/modules/papers.py
index 7fa3a57..68860df 100644
--- a/modules/papers.py
+++ b/modules/papers.py
@@ -8,7 +8,7 @@ import random
import requests
import lxml.etree
from StringIO import StringIO
-import scihub
+import modules.scihub
import pdfparanoia
@@ -136,10 +136,10 @@ def download(phenny, input, verbose=True):
phenny.say(download_url(line))
continue
else:
- pdfurl, doi = scihub.scihubber(line, headers={})
+ pdfurl, doi = modules.scihub.scihubber(line, headers={})
if pdfurl:
if str.find(pdfurl, "pdfcache"):
- if doi: phenny.say(scihub.libgen(pdfurl, doi, headers={}))
+ if doi: phenny.say(modules.scihub.libgen(pdfurl, doi, headers={}))
else: phenny.say(download_url(pdfurl))
else: phenny.say(pdfurl)
return