LoginSignup
3
2

More than 5 years have passed since last update.

Blenderの中のPythonで環境変数を参照するには

Last updated at Posted at 2015-01-31

背景

Python3はprintにカッコが必要なことをninix-ayaのビルドを
昨年やって依頼学習した程度で、Python2のこともChromeのビルドシステムや、
node.jsのエコシステム周りで割と使われてる位しか分かってない。

Pythonで環境変数を参照

import os

# どんな環境変数があるか
print(os.environ)

# 特定の環境変数の値を参照
print(os.environ['PATH'])

関連投稿

関連記事

関連記事

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2