15 lines
314 B
Python
15 lines
314 B
Python
|
# coding: utf-8
|
||
|
|
||
|
import os
|
||
|
import ConfigParser
|
||
|
|
||
|
__author__ = 'sa'
|
||
|
|
||
|
current_path = os.path.dirname(os.path.abspath(__file__))
|
||
|
# setting file read
|
||
|
settings = ConfigParser.ConfigParser()
|
||
|
if os.path.exists(current_path + "/../settings.ini"):
|
||
|
settings.read(current_path + "/../settings.ini")
|
||
|
else:
|
||
|
print "Fail"
|