Fixed removal of submodules/oRTP directory

This commit is contained in:
Sylvain Berfini 2017-07-11 09:43:21 +02:00
parent df07f11361
commit 7d049ab1f9

View file

@ -154,8 +154,11 @@ class DesktopPreparator(prepare.Preparator):
ret |= not self.check_python_module_is_present('six')
if "python" in self.args.target or "python-raspberry" in self.args.target:
ret |= not self.check_python_module_is_present('wheel')
if os.path.isdir('submodules/oRTP'):
os.rmdir('submodules/oRTP')
import shutil
shutil.rmtree('submodules/oRTP')
return ret
def show_missing_dependencies(self):