POV-Ray : Newsgroups : povray.windows : Python, subprocess, error! : Re: Python, subprocess, error! Server Time
18 Apr 2024 20:49:00 EDT (-0400)
  Re: Python, subprocess, error!  
From: LanuHum
Date: 30 Jul 2014 12:25:01
Message: <web.53d91c424d559dd87a3e03fe0@news.povray.org>
"Mr" <nomail@nomail> wrote:
>
> oh, it looks like something is wrong with the slash/backslash\ handling in the
> report.  Can you let me know if the last version does work for you?
>

I changed all code. Now we use nodes and bl_use_preview = True
I have no Windows. After I will make changes, users will carry out the test,
then to me will tell

> wheneverpossible using the os.path module methods to concatenate, truncate or
> whatever one has to do with paths makes sure it works more smoothly across
> platforms. possibly one slash should be removed from the hardwritten filename
> and left to be handled by the python's os.path methods, for instance current
> version is:
>
>
>  workDir=os.path.dirname(__file__)
>  previewDir=os.path.join(workDir, "preview")
>
>  ## Make sure Preview directory exists and is empty
>  if not os.path.isdir(previewDir):
>  os.mkdir(previewDir)
>
>  iniPrevFile=os.path.join(previewDir, "Preview.ini")
>  inputPrevFile=os.path.join(previewDir, "Preview.pov")

Thanks!


Post a reply to this message

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