MCPcopy Index your code
hub / github.com/kivy/python-for-android / setup_dirs

Method setup_dirs

pythonforandroid/build.py:157–165  ·  view source on GitHub ↗

Calculates all the storage and build dirs, and makes sure the directories exist where necessary.

(self, storage_dir)

Source from the content-addressed store, hash-verified

155 return join(self.python_installs_dir, self.bootstrap.distribution.name, arch)
156
157 def setup_dirs(self, storage_dir):
158 '''Calculates all the storage and build dirs, and makes sure
159 the directories exist where necessary.'''
160 self.storage_dir = expanduser(storage_dir)
161 if ' ' in self.storage_dir:
162 raise ValueError('storage dir path cannot contain spaces, please '
163 'specify a path with --storage-dir')
164 self.build_dir = join(self.storage_dir, 'build')
165 self.dist_dir = join(self.storage_dir, 'dists')
166
167 def ensure_dirs(self):
168 ensure_dir(self.storage_dir)

Callers 9

test_sdk_ndk_pathsMethod · 0.95
__init__Method · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80

Calls

no outgoing calls

Tested by 7

test_sdk_ndk_pathsMethod · 0.76
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64