POV-Ray : Newsgroups : povray.beta-test : beta.3 and ./ and ../ weirdness : beta.3 and ./ and ../ weirdness Server Time
20 Apr 2024 04:08:18 EDT (-0400)
  beta.3 and ./ and ../ weirdness  
From: dick balaska
Date: 19 Feb 2017 20:33:09
Message: <58aa4755$1@news.povray.org>
I was going to whip off some frames from a project development directory 
and beta.3 tells me

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.

alpha-8451792 renders this fine.

relevant code:
  36	#declare TtCommonDir="../../ttCommon/";
141	#declare ArialiFont=concat(TtCommonDir, "ariali.ttf");
165	text {
166		ttf ArialiFont
167		"Hi mom"
168		0.15,0
169		scale 3.6
170		translate <31*inches,36*inches,0>
171		pigment {Black}
172	}


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

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

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")

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


Post a reply to this message

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