Python script not working on windows 7 but works fine on linux

Steven D'Aprano steve+comp.lang.python at pearwood.info
Mon Mar 4 20:58:42 EST 2013


On Mon, 04 Mar 2013 11:20:28 -0800, ian douglas wrote:

> The error tells you everything you need to know: the file system has no
> path/file called "/home/io/btc_trading/markets.csv"
> 
> I imagine your CSV file lives in a different location on your Windows 7
> system (which also uses back-slashes '\' instead of forward-slashes '/',

Windows understands forward slashes in paths too. You can make your code 
(almost) platform-independent, and avoid a lot of problems with unescaped 
backslashes, by always using forward slashes in paths.



-- 
Steven



More information about the Python-list mailing list