OK this is what I was thinking. It's like there's a confusion between cygwin
and the actual underlying OS. Using your python/cygwin, sep is "/" and no
altsep (this is a linux), so giving it something with "\", it can't basename
it. Your new python installation is a "real" win32 one, you shouldn't have
any more problem (I hope).


PS: I still cannot understand how you can launch python under cygwin with a
path like "C:\python2.5\....".

Seb

2008/12/23 Joep Suijs <[email protected]>

>
> Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
> [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os
> >>> print repr(os.sep)
> '/'
> >>> print repr(os.altsep)
> None
> >>> print os.name
> posix
> >>>
>
>
> But I installed an other instance of python and now:
>
> C:\Python25>python
> 'import site' failed; use -v for traceback
> Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os
> >>> print repr(os.sep)
> '\\'
> >>> print repr(os.altsep)
> '/'
> >>> print os.name
> nt
> >>>
> os.path.basename('C:\\jallib\\unvalidated\\include\\peripheral\\timer\\timer
> 0_isr_interval.jal')
> 'timer0_isr_interval.jal'
> >>>
>
> I just have to keep track of the right version!
>
> Joep
>
> >
>


-- 
Sébastien Lelong
http://www.sirloon.net
http://sirbot.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to