> os.path.exists behaves differently if called from a django app. Why?
I don't think it does, for example: ~/sandboxes/arecibo $ ls -al ~/Desktop/ [...snip..] drwxr-xr-x 2 andy andy 68 5 Dec 21:57 El CamarĂ³n de la Isla ~/sandboxes/arecibo $ cat test.py # -*- coding: utf-8 -*- import os print os.path.exists("/Users/andy/Desktop/El CamarĂ³n de la Isla") ~/sandboxes/arecibo $ python test.py True ~/sandboxes/arecibo $ python manage.py shell imPython 2.4.4 (#1, Feb 18 2007, 22:11:27) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> import django >>> import test True Seems to work just fine, there's nothing I've seen that fiddles with os.path. What is more likely: in one situation you've got a string encoded one way, in another its another. Check those strings encodings are what you expect prior to calling them. -- Andy McKay www.clearwind.ca | www.agmweb.ca/blog/andy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---