You won't be happy....
C:\myrobot\jal\projects\jallib_test>python
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
>>> os.path.basename('C:\\jallib\\unvalidated\\include\\peripheral\\timer\\time
r0_isr_interval.jal')
'C:\\jallib\\unvalidated\\include\\peripheral\\timer\\timer0_isr_interval.jal'
>>> os.path.split('C:\\jallib\\unvalidated\\include\\peripheral\\timer\\timer0_
isr_interval.jal')
('', 'C:\\jallib\\unvalidated\\include\\peripheral\\timer\\timer0_isr_interval.j
al')
2008/12/23, Sebastien Lelong <[email protected]>:
> Aaaaah, this can't be possible ! Could you test the following and send back
> the whole result ?
>
> * open a python shell
> * then
>
> >>> import os
> >>>
> os.path.basename('C:\\jallib\\unvalidated\\include\\peripheral\\timer\\timer0_isr_interval.jal')
>
> This should give:
>
> 'timer0_isr_interval.jal'
>
>
> >>>
> os.path.split('C:\\jallib\\unvalidated\\include\\peripheral\\timer\\timer0_isr_interval.jal')
>
> should give:
>
> ('C:\\jallib\\unvalidated\\include\\peripheral\\timer',
> 'timer0_isr_interval.jal')
>
>
>
> if not, python version ? Is it full moon ? Which cereals did you eat this
> morning ?
>
>
>
> Seb
>
>
> 2008/12/22 Joep Suijs <[email protected]>
> >
> >
> > This basename thing does not work as expected:
> >
> >
> > File:
> C:\jallib\unvalidated\include\peripheral\timer\timer0_isr_interval.jal
> > 1 errors found
> > ERROR: Filename is not lowercase:
> >
> C:\jallib\unvalidated\include\peripheral\timer\timer0_isr_interval.jal
> >
> > 0 warnings found
> > filename:
> 'C:\\jallib\\unvalidated\\include\\peripheral\\timer\\timer0_isr_interval.jal'
> > now filename:
> 'C:\\jallib\\unvalidated\\include\\peripheral\\timer\\timer0_isr_interval.jal'
> >
> >
> > 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
-~----------~----~----~----~------~----~------~--~---