mirror of
https://github.com/soimort/you-get.git
synced 2025-02-10 04:02:28 +03:00
Merge branch 'develop' of https://github.com/abcfy2/you-get into abcfy2-develop
This commit is contained in:
commit
1c91ffe486
8
you-get
8
you-get
@ -4,7 +4,13 @@
|
|||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
_srcdir = 'src/'
|
_srcdir = 'src/'
|
||||||
_filepath = os.path.dirname(os.path.realpath(__file__))
|
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__))
|
||||||
sys.path.insert(1, os.path.join(_filepath, _srcdir))
|
sys.path.insert(1, os.path.join(_filepath, _srcdir))
|
||||||
|
|
||||||
if sys.version_info[0] == 3:
|
if sys.version_info[0] == 3:
|
||||||
|
Loading…
Reference in New Issue
Block a user