seem to be having a lot of trouble renaming the files using a python script that WM has very kindly 'uppercased' for me. I'm trying to run the script on the Russian blog but keep getting an Error 13 - Windows error?
--- import os, sys for root, dirs, files in os.walk('.', topdown=False): for filename in files: os.rename(os.path.join(root, filename), os.path.join(root, 'tmp')) os.rename(os.path.join(root, 'tmp'), os.path.join(root, filename.lower())) for dirname in dirs: os.rename(os.path.join(root, dirname), os.path.join(root, 'tmp')) os.rename(os.path.join(root, 'tmp'), os.path.join(root, dirname.lower())) --- what am i doing wrong, please tell me? i am very new to python On Jul 17, 3:18 pm, warsng <[EMAIL PROTECTED]> wrote: > a glimmer of hope > > http://translate.google.co.uk/translate?hl=en&sl=ru&u=http://pyromann... > > On Jul 17, 2:21 pm, warsng <[EMAIL PROTECTED]> wrote: > > > I have installed Python CE, but i am getting import errors - 'No > > module named django' > > > I don't know which directory i am supposed to install django into, i > > have tried putting it in python25/Lib/site-packages as the windows > > version (i think?) > > > im fumbling around in the dark here, as the version of django on the > > blogpost seems to be a very old one, and the version of WM is not even > > the same. also there seems to be no command line for WM6, all i have > > is the python interpreter, which does seem to run .py scripts > > > any guidance would be welcome > > > On Jul 17, 2:02 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> > > wrote: > > > > On Thu, Jul 17, 2008 at 7:04 PM, warsng <[EMAIL PROTECTED]> wrote: > > > > > After taking a look at the blogpost where someone got django running > > > > on WM, i thought i would give it a try. however, i am not having much > > > > success. Has anyone got this working recently? I am not using Pocket > > > > PC unlike the blog author, I am using Windows Mobile 6 Standard, i.e. > > > > non-touch-screen. > > > > Yes, it can be done; no it isn't easy. The good news is that the > > > problems you will experience aren't Django related - it's a dependency > > > problem. In order to run Django, you need to get Python and SQLite > > > builds for your handheld. Installation binaries for handheld platforms > > > are not easily found, and using the Windows Mobile compiler toolchain > > > to produce installation binaries can be a painful process. > > > > Once you have those dependencies compiled, Django works out of the box. > > > > The bad news is that it has been a long time since I did this myself, > > > I have almost no recollection what combination of voodoo and black > > > magick was required, and I've changed jobs in the interim, so I can't > > > check a reference build to give you any guidance. However, I assure > > > you it can be done. > > > > Yours, > > > Russ Magee %-) > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---