![]() |
2010-02-14
, 20:06
|
Posts: 137 |
Thanked: 150 times |
Joined on Jan 2010
|
#1
|
![]() |
2010-02-14
, 20:10
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#2
|
file = open('/tmp/dbus-info') raw = file.read() temp = raw.split('\n') temp2= temp[0].split('=',1) os.environ[temp2[0]] = temp2[1]
The Following User Says Thank You to Matan For This Useful Post: | ||
![]() |
2010-02-14
, 20:32
|
Posts: 137 |
Thanked: 150 times |
Joined on Jan 2010
|
#3
|