POV-Ray : Newsgroups : povray.beta-test : beta.3 and ./ and ../ weirdness : Re: beta.3 and ./ and ../ weirdness Server Time
19 Apr 2024 02:52:21 EDT (-0400)
  Re: beta.3 and ./ and ../ weirdness  
From: dick balaska
Date: 22 Feb 2017 23:43:39
Message: <58ae687b$1@news.povray.org>
Am 2017-02-22 15:48, also sprach clipka:
> Am 20.02.2017 um 02:33 schrieb dick balaska:
>
>> File 'reeferMagnets.inc' line 169: Possible Parse Error: Cannot find file
>>  '../../ttCommon/ariali.ttf', even after trying to append file type
>> extension.
>> File 'reeferMagnets.inc' line 169: Possible Parse Error: Cannot open
>> font file.
>
> I figured out where this comes from...

Yay. For a minute I thought it was another manifestation of the stack 
woes, what with the broken/not broken behavior.

>
>
>> I also see that "./subdir/include.inc" also fails.  I didn't notice this
>> last night, because I had changed the prefix directory to "" instead of
>> "./" .
>
> ... but this is puzzling me, because I know I've fixed it in commit
> 9cf8a79 (2017-02-16). Can you please double-check this one? Otherwise I
> would have to wonder whether the beta.3 installer really contains what's
> tagged as beta.3 on GitHub.
>
povconsole64-9cf8a79.exe fails.
povconsole64-63e9b8ad.exe works. (The 2017-02-22 location of 
origin/release/v3.7.1)

Oh wait. I meant "../../" works. Re-reading before pressing send, I see 
you meant specifically "./" .  Let me re-check...

Yes, "./" works on 9cf8a79 on povconsole64.  I'm not sure what I was 
looking at the other day.  "./" also works inside of your built povwin 
beta.3 .
I could have sworn I saw it fail there.  I blame pebkac.

>
>> I thought I'd create a 3 file tar demonstrating this, except it doesn't
>> fail.
>>
>> This renders fine:
>> #declare dir="../../";
>> #include concat(dir, "include.inc")
>
> Let me guess: There also happens to be an "include.inc" in the current
> directory?

Nah, "3 files"  ttfail.ini, ttfail.pov, and ../../subdir/include.inc
(I thought maybe 'down 2 and up 1')
I also tried it with a .ttf .

I was shocked it worked. I thought I was going to have to do the "start 
with the whole project and prune away everything" thing again.

>
>
> Also, just for clarity: Am I right in assuming that this all happens
> only on the Windows machine?

"only" is a strong word.

My preferred geek workflow is to develop on Windows and deploy on Linux.
I can run eclipse (povclipse, c++) on Ubuntu, but under the cygwin/x 
server, it looks poopy. (kbreakout looks/plays great, though ;) )


I just tried it on Linux.  "./" and "../../" work on beta.3 .

-- 
dik


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.