Thanks a lot, I'll have to try it. Le lundi 21 avril 2014 15:30:24 UTC+1, Pablo Hoffman a écrit : > > You need to declare the file in package_data (setup.py) and use > pkgutil.get_data(). > > See this message for a practical example: > https://groups.google.com/d/msg/scrapy-users/B70eq1_N3Fk/vR7aDeizj_sJ > > > On Mon, Apr 21, 2014 at 8:17 AM, Hakim Benoudjit > <[email protected]<javascript:> > > wrote: > >> Hi, >> >> I'm trying to deploy my scrapy crawlers, but the problem is that I have a >> *yaml >> file *that I'm trying to load from inside the *spider*, >> this works when the spider is loaded from the shell: *scrapy crawl >> <spider-name>*. >> But when the spider is deployed from *scrapyd*, the *path to the yaml *file >> must be *absolute*. >> >> Is there a way to use a *relative path *for the *yaml file*, even when >> spiders are deployed with *scrapyd*? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "scrapy-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/scrapy-users. >> For more options, visit https://groups.google.com/d/optout. >> > >
-- You received this message because you are subscribed to the Google Groups "scrapy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/scrapy-users. For more options, visit https://groups.google.com/d/optout.
