[Sidefx-houdini-list] Should one IFD be able to be rendered cross platform? windows / mac

Ammon Riley ammon.riley at gmail.com
Thu Oct 28 19:52:41 EDT 2010


On Mon, Oct 25, 2010 at 5:53 PM, Robert Kelly <isstuff at gmail.com> wrote:
> i can do all my paths with in Houdini as forward slashes on windows
> boxes and its happy.. i can even mix and mach slashes and things will
> still work, if i want to make trouble for my self if i ever want to
> pass that string with python.

Since you bring up python, I should note that python's notion of the
path separator differs between Windows, cygwin on Windows, and
Linux:

C:\scripting\python\x64>python.exe
Python 2.7 (r27:82525, Jul  4 2010, 07:43:08) [MSC v.1500 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.sep
'\\'
>>>

cygwin> python
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
[GCC 4.3.4 20090804 (release) 1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.sep
'/'
>>>

linux> python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.sep
'/'
>>>

If you want your path's to remain constantly using a forward slash,
beware of which python you're using.

I'm not sure if the hython implementation is consistent across
platforms.



More information about the Sidefx-houdini-list mailing list