Some distrib tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-12-18 17:57:26 +00:00
parent 36b5a8204e
commit 045b46ea28
3 changed files with 4 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ Usage: genfilelist.py [-r] build_root filespec(s)
"""
import sys, os, glob
import sys, os, glob, stat
def walktree(names, buildroot, recurse):
@@ -25,7 +25,7 @@ def printfilename(name, buildroot, isdir):
fmt = "%%dir %%attr(%o, root, root) %s"
else:
fmt = "%%attr(%o, root, root) %s"
print fmt % (s.st_mode & 0777, realname)
print fmt % (s[stat.ST_MODE] & 0777, realname)
def main(args):