python获取自己的exe路径

  • exe路径
>>> sys.executable
'C:\\Python27\\python.exe'
  • lib路径
>>> sys.prefix
'C:\\Python27'
posted @ 2017-04-17 22:47  妙音  阅读(4137)  评论(0编辑  收藏  举报