make pygit2 work with pyinstaller
This commit is contained in:
@@ -80,6 +80,9 @@ def get_ffi():
|
|||||||
|
|
||||||
# Load C definitions
|
# Load C definitions
|
||||||
if getattr(sys, 'frozen', False):
|
if getattr(sys, 'frozen', False):
|
||||||
|
if hasattr(sys, '_MEIPASS'):
|
||||||
|
dir_path = sys._MEIPASS
|
||||||
|
else:
|
||||||
dir_path = dirname(abspath(sys.executable))
|
dir_path = dirname(abspath(sys.executable))
|
||||||
else:
|
else:
|
||||||
dir_path = dirname(abspath(__file__))
|
dir_path = dirname(abspath(__file__))
|
||||||
|
Reference in New Issue
Block a user