diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2010-04-15 15:34:28 +0800 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-04-15 15:34:28 +0800 |
commit | 406baa0f95f084e897db8845e407503bdcff6d6c (patch) | |
tree | d96f17196af18940b59e6a9e4c8829ad9a384f0a /setup | |
parent | fb08ff9bc55513b58f31a298c27dcf57a4d4196a (diff) | |
download | ibus-libpinyin-406baa0f95f084e897db8845e407503bdcff6d6c.tar.gz ibus-libpinyin-406baa0f95f084e897db8845e407503bdcff6d6c.tar.xz ibus-libpinyin-406baa0f95f084e897db8845e407503bdcff6d6c.zip |
Fix copy phrases.txt error
Diffstat (limited to 'setup')
-rw-r--r-- | setup/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/main.py b/setup/main.py index 29769d4..7c8eb12 100644 --- a/setup/main.py +++ b/setup/main.py @@ -239,8 +239,8 @@ class PreferencesDialog: os.path.exists(path) or os.makedirs(path) path = os.path.join(path, "phrases.txt") if not os.path.exists(path): - datadir = os.getenv("IBUS_DATAROOTDIR") or "/usr/share/ibus-pinyin" - src = os.path.join(datadir, "phrases.txt") + datadir = os.getenv("IBUS_DATAROOTDIR") or "/usr/share" + src = os.path.join(datadir, "ibus-pinyin", "phrases.txt") shutil.copyfile(src, path) os.system("xdg-open %s" % path) |