You can use .replace() after path.join() to ensure the slashes are correct:
print os.path.join(A,B,C).replace("\\","/")
and also Would it be better to import posixpath instead of os.path and then do posixpath.join(A, B, C) will always give you forward slashes.
The command is based on your OS,
posixpath for UNIX-style paths
ntpath for Windows paths
macpath for old-style MacOS paths
os2emxpath for OS/2 EMX paths
refer to this link :
https://docs.python.org/3.8/library/os.path.html [docs.python.org]
Found 2 posts.
Search results Show results as topic list.
Technical Discussion » Houdini env var windows backslash issues
- JayBhadaniya
- 2 posts
- Offline
PDG/TOPs » TOP NETWORK TAKE MORE TIME TO CACHE
- JayBhadaniya
- 2 posts
- Offline
Hello expert,
I have some queries regarding the top network node.
I have some large area smoke sim emitter so I just divide into clusters and put it into the top network. Can anybody explain that when I put my cache in Houdini top network it takes more than 3 to 4 hours as compared to the regular file cache node it takes only 3 to 4 min per cluster?
Can you explain how I can fix it?
I have some queries regarding the top network node.
I have some large area smoke sim emitter so I just divide into clusters and put it into the top network. Can anybody explain that when I put my cache in Houdini top network it takes more than 3 to 4 hours as compared to the regular file cache node it takes only 3 to 4 min per cluster?
Can you explain how I can fix it?
-
- Quick Links