[ubuntu-uk] Python Question

2011-09-23 Thread Dave Hanson
Hello Everyone, I have scoured the web and can only find half baked answers to my question - I'm hoping someone here can help? I know that Python is classed as a portable programming language (it will run on anything) So I'm wondering how do you code in such a way that your script can just be

Re: [ubuntu-uk] Python Question

2011-09-23 Thread Tyler J. Wagner
On 2011-09-23 15:38, Dave Hanson wrote: I want to search the entire disk of any OS to find the Firefox cache directory. Is it even possible to do this? I don't particularly need the code to do it (I don't mind if you want to share though!) What I'm really after is - Am I wasting my time even

Re: [ubuntu-uk] Python Question

2011-09-23 Thread Juan J.
On Fri, 2011-09-23 at 15:38 +0100, Dave Hanson wrote: [...] It works fine on my Ubuntu machine, It won't run on a Windows machine (haven't tested) I think because I'm calling the unix version of find and also my path is /, obviously this would be c: in windows. It won't work because you're

Re: [ubuntu-uk] Python Question

2011-09-23 Thread Simon Greenwood
On 23 September 2011 15:38, Dave Hanson d...@hansonforensics.co.uk wrote: Hello Everyone, I have scoured the web and can only find half baked answers to my question - I'm hoping someone here can help? I know that Python is classed as a portable programming language (it will run on

Re: [ubuntu-uk] Python Question

2011-09-23 Thread Dave Hanson
Thanks Tyler, I did look at that but saw no way to tell it to use the entire disk. Juanjo/Simon - Thanks, that was the only alternative I could think of but considered it long winded if there was a sort of universal option like Tyler suggested. I'll probably use sys.platform then. It's not much

Re: [ubuntu-uk] Python Question

2011-09-23 Thread Matthew Sturdy
On 23 September 2011 09:56, Dave Hanson d...@hansonforensics.co.uk wrote: Thanks again for the fast responses. I should have just posted here instead of searching for two hours - Doh! Don't forget the guys at Python IRC [http://www.python.org/community/irc/]... they've been very helpful to