(root, file=None, codec=None)
| 87 | return path |
| 88 | |
| 89 | def GetUnicodePath(root, file=None, codec=None): |
| 90 | # Replace this with the function we actually use for this |
| 91 | path = os.path.realpath(os.path.abspath(root)) |
| 92 | |
| 93 | if file: |
| 94 | path = os.path.join(path, file) |
| 95 | |
| 96 | if codec: |
| 97 | path = str(path, codec) |
| 98 | else: |
| 99 | path = str(path) |
| 100 | |
| 101 | return path |