POV-Ray : Newsgroups : povray.beta-test : beta.3 and ./ and ../ weirdness : Re: beta.3 and ./ and ../ weirdness Server Time
26 Apr 2024 15:21:44 EDT (-0400)
  Re: beta.3 and ./ and ../ weirdness  
From: clipka
Date: 22 Feb 2017 15:48:18
Message: <58adf912$1@news.povray.org>
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...


> 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.


> This is weird, my farm has run 100 frames on beta.3 and my production
> code contains "../ttCommon/ariali.ttf" (one level back).

The problem only arises with relative paths that effectively go two
levels up (or more) from whatever is considered the base directory at
that point.


> 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?


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


> So, I'm still confused. Schrödinger's bug: it's both broken and not broken.

We'll see whether it can be explained with a hidden variables theory.


Post a reply to this message

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