From baf65fed2ebeabf95436341aac1fa34e8a00c0e9 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 13 Jan 2011 23:37:30 +0100 Subject: Fix copy of default config file --- src/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/config.py b/src/config.py index 78763df1..4776e7d3 100644 --- a/src/config.py +++ b/src/config.py @@ -142,7 +142,7 @@ except OSError: pass if not path.isfile(CONFIG_PATH+'poezio.cfg'): - copy2('./data/default_config.cfg', CONFIG_PATH+'poezio.cfg') + copy2(path.join(path.dirname(__file__), '../data/default_config.cfg'), CONFIG_PATH+'poezio.cfg') parser = OptionParser() parser.add_option("-f", "--file", dest="filename", default=CONFIG_PATH+'poezio.cfg', -- cgit v1.2.3