Skip to content

Commit

Permalink
Minor changes to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
devttys0 committed Sep 13, 2017
1 parent 2a2ba78 commit e7043ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def run(self):
binwalk_dst_path = os.path.join(self.idadir, 'python', 'binwalk')

if os.path.exists(binida_dst_path):
sys.stdout.write("removing %s\n" % binida_dst_path)
sys.stdout.write("removing '%s'\n" % binida_dst_path)
os.remove(binida_dst_path)
if os.path.exists(binwalk_dst_path):
sys.stdout.write("removing %s\n" % binwalk_dst_path)
sys.stdout.write("removing '%s'\n" % binwalk_dst_path)
shutil.rmtree(binwalk_dst_path)


Expand Down Expand Up @@ -219,12 +219,12 @@ def finalize_options(self):
pass

def run(self):
sys.stdout.write("removing %s\n" % (VERSION_FILE))
sys.stdout.write("removing '%s'\n" % (VERSION_FILE))

try:
os.remove(VERSION_FILE)
except OSError as e:
sys.stderr.write("failed to remove file %s: %s\n" % (VERSION_FILE, str(e)))
sys.stderr.write("failed to remove file '%s': %s\n" % (VERSION_FILE, str(e)))

try:
remove_tree(os.path.join(MODULE_DIRECTORY, "build"))
Expand Down Expand Up @@ -328,7 +328,7 @@ def run(self):
try:
with open(VERSION_FILE, "w") as fp:
fp.write("# This file has been auto-generated by setup.py\n")
fp.write('__version__ = "%s"' % MODULE_VERSION)
fp.write('__version__ = "%s"\n' % MODULE_VERSION)
except IOError as e:
sys.stderr.write("failed to create file %s: %s\n" % (VERSION_FILE, str(e)))
sys.exit(1)
Expand Down

0 comments on commit e7043ba

Please sign in to comment.