diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-01-16 11:03:33 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-01-16 11:03:33 (GMT) |
commit | 2206cd17ceb9a3f59e77db069f9b2e7d253daa3d (patch) | |
tree | c83a9e605a79cc99a12177cac1bdf741f50d386f /Tools/idle | |
parent | 6f2adc7cd07783f5eaff3ce64a1ae466bd516e46 (diff) | |
download | cpython-2206cd17ceb9a3f59e77db069f9b2e7d253daa3d.zip cpython-2206cd17ceb9a3f59e77db069f9b2e7d253daa3d.tar.gz cpython-2206cd17ceb9a3f59e77db069f9b2e7d253daa3d.tar.bz2 |
Properly find and install icons even if calling setup.py from the build dir.
Diffstat (limited to 'Tools/idle')
-rw-r--r-- | Tools/idle/setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/idle/setup.py b/Tools/idle/setup.py index 71549a8..b969092 100644 --- a/Tools/idle/setup.py +++ b/Tools/idle/setup.py @@ -26,7 +26,7 @@ idlelib = "idlelib" # the normal build_py would not incorporate the .txt files txt_files = ['config-unix.txt','config-win.txt','config.txt', 'help.txt'] -Icons = glob.glob1("Icons","*.gif") +Icons = glob.glob1(os.path.join(package_dir,"Icons"),"*.gif") class idle_build_py(build_py): def get_plain_outfile(self, build_dir, package, file): # like get_module_outfile, but does not append .py @@ -48,7 +48,7 @@ class idle_build_py(build_py): [idlelib,"Icons"], name) dir = os.path.dirname(outfile) self.mkpath(dir) - self.copy_file(os.path.join("Icons",name), + self.copy_file(os.path.join(package_dir, "Icons", name), outfile, preserve_mode = 0) def get_source_files(self): |