From b296d4169e3942573a598ed67b6f22a374a7cdae Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Sun, 9 Aug 2009 17:08:42 -0300 Subject: [PATCH] minor doc update for making it more windows-friendly --- docs/intro/overview.rst | 2 +- docs/topics/settings.rst | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/intro/overview.rst b/docs/intro/overview.rst index f5ede250e..a7d6a53c1 100644 --- a/docs/intro/overview.rst +++ b/docs/intro/overview.rst @@ -152,7 +152,7 @@ extracted item into a file using `pickle`_:: class StoreItemPipeline(object): def process_item(self, domain, response, item): torrent_id = item.url.split('/')[-1] - f = open("/tmp/torrent-%s" % torrent_id, "w") + f = open("torrent-%s.pickle" % torrent_id, "w") pickle.dump(item, f) f.close() diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst index 142b32dbc..4973c7ccb 100644 --- a/docs/topics/settings.rst +++ b/docs/topics/settings.rst @@ -48,17 +48,22 @@ You can also override one (or more) settings from command line using the Example:: - scrapy-ctl.py crawl domain.com --set=LOG_FILE:/tmp/scrapy.log + scrapy-ctl.py crawl domain.com --set LOG_FILE=scrapy.log 2. Environment variables ------------------------ You can populate settings using environment variables prefixed with -``SCRAPY_``. For example, to change the log file location:: +``SCRAPY_``. For example, to change the log file location un Unix systems:: - $ export SCRAPY_LOG_FILE=/tmp/scrapy.log + $ export SCRAPY_LOG_FILE=scrapy.log $ scrapy-ctl.py crawl example.com +In Windows systems, you can change the environment variables from the Control +Panel following `these guidelines`_. + +.. _these guidelines: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_advancd_environmnt_addchange_variable.mspx + 3. scrapy_settings ------------------