← Back to team overview

dolfin team mailing list archive

Re: os.path.sep in test script

 

On Mon, Sep 14, 2009 at 12:20 PM, Anders Logg <logg@xxxxxxxxx> wrote:
> On Mon, Sep 14, 2009 at 12:10:59PM +0200, Johannes Ring wrote:
>> On Mon, Sep 14, 2009 at 11:51 AM, Anders Logg <logg@xxxxxxxxx> wrote:
>> > os.path.sep seems to be used when running the C++ but not when running
>> > Python demos. Is there a reason for this or is it just a typo?
>>
>> I think it's enough with 'python demo.py' for the Python demos. There
>> is no need for './' or 'os.path.sep'. The cpp demos needs
>> 'os.path.sep' since the demos are started with '.\demo.exe' on Windows
>> and './demo' on other platforms.
>
> Yes, I think so too, but the script said "python ./demo.py". This becomes
> the input argument to Python and I guess Python understands "./" even
> on Windows.

Yes, it does.

> Anyway, I've removed it now.

Good.

Johannes


References