From: nejucomo Date: Sun, 1 Jun 2008 02:06:00 +0000 (-0700) Subject: fuse_a: Add more explanation to the failure message when simplejson cannot be imported. X-Git-Tag: allmydata-tahoe-1.1.0~64 X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/priv.html?a=commitdiff_plain;h=af5a91229f1ac04530d6c0f2c5be6945381e84f6;p=tahoe-lafs%2Ftahoe-lafs.git fuse_a: Add more explanation to the failure message when simplejson cannot be imported. --- diff --git a/contrib/fuse_a/tahoe_fuse.py b/contrib/fuse_a/tahoe_fuse.py index f9485642..56ac3122 100644 --- a/contrib/fuse_a/tahoe_fuse.py +++ b/contrib/fuse_a/tahoe_fuse.py @@ -43,7 +43,10 @@ except ImportError, e: Could not import simplejson, which is bundled with Tahoe. Please update your PYTHONPATH environment variable to include the tahoe "support/lib/python/site-packages" directory. -''') + +If you run this from the Tahoe source directory, use this command: +PYTHONPATH="$PYTHONPATH:./support/lib/python%d.%d/site-packages/" python %s +''' % (sys.version_info[:2] + (' '.join(sys.argv),))) try: