Skip to content

Commit

Permalink
build: remove left-over bin/ folder if found
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtournier committed Apr 22, 2017
1 parent 21da624 commit aec8fc6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

import platform, sys, os, time, threading, subprocess, copy, codecs, glob, atexit, tempfile
import platform, sys, os, time, threading, subprocess, copy, codecs, glob, atexit, tempfile, shutil


config_name = None
Expand Down Expand Up @@ -378,7 +378,11 @@ moc_obj_suffix = '_moc' + obj_suffix




# remove any files that might have been left over from older installations in
# different locations:
if os.path.isdir ('bin'):
disp ("WARNING: removing 'bin/' folder - most likely left over from a previous installation\n\n")
shutil.rmtree ('bin')



Expand Down

0 comments on commit aec8fc6

Please sign in to comment.