fix path error

This commit is contained in:
4ft35t 2016-05-26 23:52:22 +08:00
parent f7350381b6
commit b6a00c3e14

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os, sys
_srcdir = 'src/'
_srcdir = '%s/src/' % os.path.dirname(os.path.realpath(__file__))
_filepath = os.path.dirname(sys.argv[0])
sys.path.insert(1, os.path.join(_filepath, _srcdir))