Changeset View
Changeset View
Standalone View
Standalone View
pykolab/setup/setup_roundcube.py
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | def execute(*args, **kw): | ||||
for root, directories, filenames in os.walk(rcpath + 'plugins/libkolab/'): | for root, directories, filenames in os.walk(rcpath + 'plugins/libkolab/'): | ||||
for filename in filenames: | for filename in filenames: | ||||
if filename.startswith('mysql') and filename.endswith('.sql'): | if filename.startswith('mysql') and filename.endswith('.sql'): | ||||
schema_filepath = os.path.join(root,filename) | schema_filepath = os.path.join(root,filename) | ||||
if not schema_filepath in schema_files: | if not schema_filepath in schema_files: | ||||
schema_files.append(schema_filepath) | schema_files.append(schema_filepath) | ||||
schema_files = [] | |||||
for root, directories, filenames in os.walk('/usr/share/doc/'): | for root, directories, filenames in os.walk('/usr/share/doc/'): | ||||
directories.sort() | directories.sort() | ||||
for directory in directories: | for directory in directories: | ||||
if directory.startswith("chwala"): | if directory.startswith("chwala"): | ||||
for nested_root, nested_directories, nested_filenames in os.walk(os.path.join(root, directory)): | for nested_root, nested_directories, nested_filenames in os.walk(os.path.join(root, directory)): | ||||
for filename in nested_filenames: | for filename in nested_filenames: | ||||
if filename.startswith('mysql.initial') and filename.endswith('.sql'): | if filename.startswith('mysql.initial') and filename.endswith('.sql'): | ||||
schema_filepath = os.path.join(nested_root,filename) | schema_filepath = os.path.join(nested_root,filename) | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |