extensions: setup.py: add kivy.ext to packages. ext/__init__: don't crash if an extension path doesn't exist and cannot be created (Question: should we by default create the extensions/ folder in the kivy base dir...)

This commit is contained in:
Christopher Denter 2011-05-26 22:39:06 +02:00
parent 416a11fc20
commit 765389d01c
2 changed files with 5 additions and 1 deletions

View File

@ -203,7 +203,10 @@ def unzip_extensions():
for epath in EXTENSION_PATHS: for epath in EXTENSION_PATHS:
if not isdir(epath): if not isdir(epath):
try:
mkdir(epath) mkdir(epath)
except OSError:
continue
files = [] files = []
else: else:
files = listdir(epath) files = listdir(epath)

View File

@ -212,6 +212,7 @@ setup(
'kivy.core.text', 'kivy.core.text',
'kivy.core.video', 'kivy.core.video',
'kivy.core.window', 'kivy.core.window',
'kivy.ext',
'kivy.graphics', 'kivy.graphics',
'kivy.input', 'kivy.input',
'kivy.input.postproc', 'kivy.input.postproc',