def main(): configuration = tk.get_config('config.json') home = tk.get_content_home() folder_list = configuration['subdirs'] search_paths = tk.build_search_paths(home, folder_list) # THIS WORKS tk.generate_manifest(search_paths) manifest = tk.load_manifest() pprint(manifest) ''' search_paths = build_search_paths(__content_home__, folder_list) last_total = configuration['items_total'] print_content_file_list(search_paths) validate_env(search_paths) print(" Getting content totals....") print_branch_counts(search_paths) current_total = get_total_content_count(__content_home__, folder_list) print(" Total Items in content: " + str(get_total_content_count(__content_home__, folder_list))) if current_total != last_total: print("\n *** WARNING: Total number of items has changed from " + str(last_total) + " to " + str(current_total) + " since last run.") if search.search(__content_home__ + '/gif', 'topoff2.gif'): print "Search works" ''' pass
def info(): print("Version: " + ptk.get_version()) print("Content Home: " + ptk.get_content_home()) print("Manifest file: " + ptk.get_manifest_file_path()) print("Install date: " + str(datetime.datetime.now())) print