Fixed config file location

This commit is contained in:
Uriziel 2012-06-21 15:32:12 +02:00
parent 1c4228df1c
commit 393e6f3306

View File

@ -22,7 +22,7 @@ def get_configuration():
args = parser.parse_args()
config = ConfigParser.RawConfigParser(allow_no_value=True)
config.read('syncplay.ini')
config.read(os.path.join(os.path.dirname(__file__), 'syncplay.ini'))
try:
if(args.host == None):
host = config.get('sync', 'host')