1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-03-04 10:28:15 +00:00
bazarr/libs/subzero/util.py

10 lines
274 B
Python
Raw Normal View History

2018-10-31 17:08:29 +01:00
# coding=utf-8
2019-09-16 22:04:27 -04:00
from __future__ import absolute_import
2018-10-31 17:08:29 +01:00
import os
from subzero.lib.io import get_viable_encoding
2019-09-16 22:04:27 -04:00
import six
2018-10-31 17:08:29 +01:00
def get_root_path():
2019-09-16 22:04:27 -04:00
return os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(six.text_type(__file__, get_viable_encoding()))), ".."))