程序打包sys.path[0]问题

解决方法如下:

    path=sys.path[0]
    if os.path.isfile(path):
        path=os.path.split(path)[0]


你可能感兴趣的:(程序打包sys.path[0]问题)