projects
/
platform
/
upstream
/
ibus-libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb08ff9
)
Fix copy phrases.txt error
author
Peng Huang
<shawn.p.huang@gmail.com>
Thu, 15 Apr 2010 07:34:28 +0000
(15:34 +0800)
committer
Peng Huang
<shawn.p.huang@gmail.com>
Thu, 15 Apr 2010 07:34:28 +0000
(15:34 +0800)
setup/main.py
patch
|
blob
|
history
diff --git
a/setup/main.py
b/setup/main.py
index
29769d4
..
7c8eb12
100644
(file)
--- 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)