~alessandrofac93/bumblebee-config-gui/0.6

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- coding: utf-8 -*-

"""
@author: Alessandro Facciorusso
"""

import os


def determine_module_path():
    try:
        root = __file__

        if os.path.islink(root):
            root = os.path.realpath(root)
        return os.path.dirname(os.path.abspath(root))
    except:
        raise SystemError("Could not find the __file__ var. Exiting.")
        sys.exit()