Skip to content
KerwinKoo edited this page Dec 28, 2015 · 1 revision

python 获取linux系统环境变量:

import os
filename = os.environ.get('PYTHONSTARTUP')
if filename and os.path.isfile(filename):
    execfile(filename)

[[TOC]]

Clone this wiki locally