fix buildozer init

This commit is contained in:
Mathieu Virbel 2012-12-19 18:13:12 +01:00
parent 6224f748be
commit aea63eafe4
2 changed files with 5 additions and 2 deletions

View file

@ -46,7 +46,7 @@ Example of commands::
buildozer android debug install
# set the default command if nothing set
buildozer setdefault android debug install
buildozer setdefault android debug install run
Usage

View file

@ -376,7 +376,10 @@ class Buildozer(object):
def cmd_init(self, *args):
'''Create a initial buildozer.spec in the current directory
'''
copyfile((dirname(__file__), 'default.spec'), 'buildozer.spec')
if exists('buildozer.spec'):
print 'ERROR: You already have a buildozer.spec file.'
exit(1)
copyfile(join(dirname(__file__), 'default.spec'), 'buildozer.spec')
print 'File buildozer.spec created, ready to customize!'
def cmd_clean(self, *args):