Skip to content

Patch for Mac running Python 2.7.10 #3

@noelsmith

Description

@noelsmith

Was getting the following error when running on my Mac (10.10.15) with Python 2.7.10

Traceback (most recent call last):
  File "apksmash.py", line 523, in <module>
    os.rename(tmp_name, smali_name)
OSError: [Errno 18] Cross-device link

So I added the following:

import shutil

And changed os.rename to shutil.move on line 523 and it seemed to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions