This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author DaveH
Recipients DaveH
Date 2013-03-06.07:20:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362554402.61.0.445452595453.issue17366@psf.upfronthosting.co.za>
In-reply-to
Content
os.chdir missed a back slash in rewriting a file path see example below (the extra backslash was missing from the trunk directory). 
Modifying the path with an extra slash enabled this to work for some reason. (os windows 8 64 bit Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32 :
spyder console output:
>>> os.chdir("C:\Projects\trunk\BusPirate\dangerous-prototypes-open-hardware-read-only\Bus_Pirate\scripts\pyBusPirateLite")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
WindowsError: [Error 123] The filename, directory name or volume label syntax is incorrect: 'C:\\Projects\trunk\\BusPirate\\dangerous-prototypes-open-hardware-read-only\\Bus_Pirate\\scripts\\pyBusPirateLite'
>>> os.chdir("C:\Projects\\trunk\BusPirate\dangerous-prototypes-open-hardware-read-only\Bus_Pirate\scripts\pyBusPirateLite")
>>> from pyBusPirateLite.SPI import *
History
Date User Action Args
2013-03-06 07:20:02DaveHsetrecipients: + DaveH
2013-03-06 07:20:02DaveHsetmessageid: <1362554402.61.0.445452595453.issue17366@psf.upfronthosting.co.za>
2013-03-06 07:20:02DaveHlinkissue17366 messages
2013-03-06 07:20:02DaveHcreate