16 lines
No EOL
508 B
Python
16 lines
No EOL
508 B
Python
|
|
import sys, os
|
|
from ConfigParser import SafeConfigParser
|
|
config = dict()
|
|
try:
|
|
conf = SafeConfigParser()
|
|
found = conf.read(['C:\\utils\\config.txt', 'D:\\DSZOpsDisk\\Resources\\Ops\\Data\\config.txt'])
|
|
for section in conf.sections():
|
|
config[section] = dict()
|
|
for item in conf.items(section):
|
|
config[section][item[0]] = item[1]
|
|
except:
|
|
pass
|
|
globalpath = config['paths']['sharedpython']
|
|
if (globalpath not in sys.path):
|
|
sys.path.append(globalpath) |