kopia lustrzana https://github.com/carson-katri/geometry-script
9 wiersze
275 B
Python
9 wiersze
275 B
Python
|
import os
|
||
|
|
||
|
def absolute_path(component):
|
||
|
"""
|
||
|
Returns the absolute path to a file in the addon directory.
|
||
|
|
||
|
Alternative to `os.abspath` that works the same on macOS and Windows.
|
||
|
"""
|
||
|
return os.path.join(os.path.dirname(os.path.realpath(__file__)), component)
|