Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2adc7 commit 2206cd1Copy full SHA for 2206cd1
1 file changed
Tools/idle/setup.py
@@ -26,7 +26,7 @@
26
27
# the normal build_py would not incorporate the .txt files
28
txt_files = ['config-unix.txt','config-win.txt','config.txt', 'help.txt']
29
-Icons = glob.glob1("Icons","*.gif")
+Icons = glob.glob1(os.path.join(package_dir,"Icons"),"*.gif")
30
class idle_build_py(build_py):
31
def get_plain_outfile(self, build_dir, package, file):
32
# like get_module_outfile, but does not append .py
@@ -48,7 +48,7 @@ def run(self):
48
[idlelib,"Icons"], name)
49
dir = os.path.dirname(outfile)
50
self.mkpath(dir)
51
- self.copy_file(os.path.join("Icons",name),
+ self.copy_file(os.path.join(package_dir, "Icons", name),
52
outfile, preserve_mode = 0)
53
54
def get_source_files(self):
0 commit comments