Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f755c6 commit cd7e2b2Copy full SHA for cd7e2b2
pygit2/_utils.py
@@ -80,7 +80,10 @@ def get_ffi():
80
81
# Load C definitions
82
if getattr(sys, 'frozen', False):
83
- dir_path = dirname(abspath(sys.executable))
+ if hasattr(sys, '_MEIPASS'):
84
+ dir_path = sys._MEIPASS
85
+ else:
86
+ dir_path = dirname(abspath(sys.executable))
87
else:
88
dir_path = dirname(abspath(__file__))
89
0 commit comments