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

Function GetPath

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

Source from the content-addressed store, hash-verified

75
76
77def GetPath(root, file=None, codec=None):
78 # Replace this with the function we actually use for this
79 path = os.path.realpath(os.path.abspath(root))
80
81 if file:
82 path = os.path.join(path, file)
83
84 if codec:
85 path = path.decode(codec)
86
87 return path
88
89def GetUnicodePath(root, file=None, codec=None):
90 # Replace this with the function we actually use for this

Callers 6

loadFileMethod · 0.90
test_os_walkFunction · 0.90
test_codec_russianFunction · 0.90
test_codec_hebrewFunction · 0.90
test_codec_englishFunction · 0.90

Calls

no outgoing calls

Tested by 5

test_os_walkFunction · 0.72
test_codec_russianFunction · 0.72
test_codec_hebrewFunction · 0.72
test_codec_englishFunction · 0.72