fix buildozer init
This commit is contained in:
parent
6224f748be
commit
aea63eafe4
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue