添加oem解析 未完成
This commit is contained in:
19
bin/base.py
Normal file
19
bin/base.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 获取执行文件所在的目录
|
||||
def bin_path():
|
||||
if(sys.argv[0].endswith('.exe')):
|
||||
path=os.path.dirname(os.path.realpath(sys.executable))
|
||||
return os.path.join(path,'bin')
|
||||
else:
|
||||
path=os.path.abspath(__file__)
|
||||
path=os.path.split(path)[0]
|
||||
return path
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user