Answers for "get resource path python"

0

get resource path python

def resource_path(relative_path):
    base_path = getattr(sys, '_MEIPASS', os.path.dirname(os.path.abspath(__file__)))
    return os.path.join(base_path, relative_path)
Posted by: Guest on November-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language