|
|
"Mr" <nomail@nomail> wrote:
> clipka <ano### [at] anonymousorg> wrote:
> > Am 29.07.2014 21:24, schrieb LanuHum:
> > > Hellow!
> > > I want to make a render in a shadow mode for a preview of materials in Blender
> > > In Linux - no problem, preview very good
> > > In Windows don't work
> > >
http://blender-3d.ru/forum/index.php?action=dlattach;topic=753.0;attach=2930;image
> >
> > It does tell you what's wrong:
> >
> > "Cannot open INI file 'C:\povray\preview/Preview.ini'."
> >
> > Make sure the file is indeed at that location.
>
> 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?
>
> 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")
Hi,
The yellow message is still there and Lanuhum architecture is different from
mine, so that I would need to dig into it to understand...
What would you advice I do to adapt the current code? How should we provide a
cross platform path in our pov files? have them use unix path all allong? so
reverse all the windows paths slashes or use unix paths everywhere?
Post a reply to this message
|
|