billgreenwald / Pubmed-Batch-Download

Batch download articles based on PMID (Pubmed ID)
MIT License
115 stars 45 forks source link

Change require to require_relative #3

Closed dbujold closed 7 years ago

dbujold commented 7 years ago

To enable using the script from another directory, it'd be good to change require './pdfetch.rb' to require_relative './pdfetch.rb'

Thank you,

David

billgreenwald commented 7 years ago

Good suggestion--done.

billgreenwald commented 7 years ago

Marking as closed as I have not heard more in a month.

dbujold commented 7 years ago

It worked, thanks for the change! :-)

billgreenwald commented 7 years ago

Glad to hear it. I am currently trying to sort out a bug for some other users, but am having difficulty nailing down the culprit. Out of curiosity, if you are able to download articles with the program, would be able to tell me:

Your ruby version Your mechanize version Your camping version Your socksify version A pmid of an article that you were able to fetch?

Thanks!

dbujold commented 7 years ago

There you go:

Your ruby version: 2.2.7p470 Your mechanize version: 2.7.5 Your camping version: 2.1.532 Your socksify version: 1.7.1 A pmid of an article that you were able to fetch: 27160855