os.path.abspath(sys.argv[0])学习

来源:互联网 发布:香港 收音机软件 推荐 编辑:程序博客网 时间:2024/05/19 15:39

http://blog.csdn.net/guowenyan001/article/details/50628713

http://blog.csdn.net/u012005313/article/details/49279535


  1. 20 logger.debug("sys.path:"+sys.path[0])  
  2. 21 logger.debug("sys.argv:"+sys.argv[0])  
  3. 22 logger.debug("__file__:"+__file__)  
  4. 23 logger.debug("os.getcwd():"+os.getcwd())  
  5. 24 logger.debug("os.path.realpath():"+os.path.realpath(__file__))  
  6. 25 logger.debug("(os.path.abspath(__file__)):"+os.path.abspath(__file__))  
  7. 26 logger.debug("os.path.dirname(os.path.realpath()):"+os.path.dirname(os.path.realpath(__file__)))  
  8. 27 logger.debug("os.path.dirname(os.path.abspath(__file__)):"+os.path.dirname(os.path.abspath(__file__)))  

原创粉丝点击