MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / GetUnicodePath

Function GetUnicodePath

_development/helpers_locale.py:89–101  ·  view source on GitHub ↗
(root, file=None, codec=None)

Source from the content-addressed store, hash-verified

87 return path
88
89def 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

Callers 1

loadFileMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected