14 lines
314 B
Python
14 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"
|