Skip to content

Commit

Permalink
Merge pull request #973 from MRtrix3/build_remove_conflicting_install…
Browse files Browse the repository at this point in the history
…ation

build: remove left-over bin/ folder if found
  • Loading branch information
jdtournier authored Apr 22, 2017
2 parents 21da624 + aec8fc6 commit bea092c
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 bea092c

Please sign in to comment.