import os import re ROOT = os.path.dirname(os.path.realpath(__file__)) ROOT = re.sub(r'\\', '/', ROOT)