mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +03:00
Merge branch 'develop' of https://github.com/abcfy2/you-get into abcfy2-develop
This commit is contained in:
commit
1c91ffe486
6
you-get
6
you-get
@ -4,6 +4,12 @@
|
|||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
_srcdir = 'src/'
|
_srcdir = 'src/'
|
||||||
|
if getattr(sys, 'frozen', False):
|
||||||
|
# The application is frozen
|
||||||
|
_filepath = os.path.dirname(os.path.realpath(sys.executable))
|
||||||
|
else:
|
||||||
|
# The application is not frozen
|
||||||
|
# Change this bit to match where you store your data files:
|
||||||
_filepath = os.path.dirname(os.path.realpath(__file__))
|
_filepath = os.path.dirname(os.path.realpath(__file__))
|
||||||
sys.path.insert(1, os.path.join(_filepath, _srcdir))
|
sys.path.insert(1, os.path.join(_filepath, _srcdir))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user