mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Fixed bin deletion bug
This commit is contained in:
parent
164dd49933
commit
a2138e5d3d
2 changed files with 5 additions and 2 deletions
|
@ -39,7 +39,10 @@ class DirectoryController(object):
|
|||
raise errors.CoCoError(u"There was an error creating the directory structure, do you have correct permissions? Please remove all and start over.")
|
||||
|
||||
def remove_directories(self):
|
||||
shutil.rmtree(self.tmp_directory)
|
||||
shutil.rmtree(self.bin_directory + os.sep + "node",ignore_errors=True)
|
||||
shutil.rmtree(self.bin_directory + os.sep + "mongo",ignore_errors=True)
|
||||
def remove_tmp_directory(self):
|
||||
shutil.rmtree(self.tmp_directory)
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ class SetupFactory(object):
|
|||
print("3. ./coco-dev-server")
|
||||
print("Once brunch is done, visit http://localhost:3000!")
|
||||
def cleanup(self):
|
||||
self.config.directory.remove_directories()
|
||||
self.config.directory.remove_tmp_directory()
|
||||
|
||||
class MacSetup(SetupFactory):
|
||||
def setup(self):
|
||||
|
|
Loading…
Reference in a new issue