Krion Posted September 12, 2021 Share Posted September 12, 2021 (edited) Hi guys, How do I get a proper path when using the "/../" method? When middleclicking on such a parameter expression as $HIP/../flips/img.jpg it returns this parent_of_hipfolder/hipfolder/../flips/img.jpg (i.e go in, and then go up again) which Houdini seems to be able to read properly. But I want the path like this: parent_of_hipfolder/flips/img.jpg which I could later on use properly with the python os module, to read the data of the file. It doesn't understand the up-one-folder syntax, "/../" Thank you! Edited September 12, 2021 by Krion Quote Link to comment Share on other sites More sharing options...
Krion Posted September 12, 2021 Author Share Posted September 12, 2021 (edited) Ok wonderful, turns out this is not just an Houdini thing but a global thing, import os print os.path.abspath(path) Edited September 12, 2021 by Krion Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.