Commits

Grant Eagon committed d5fc1fb

Make pulling customer account pages work.

Comments (0)

Files changed (1)

     
     def download_asset(self, asset_index):
         key             = current_theme['assets'][asset_index]['key']
-        key1, key2      = key.split('/')
-        asset_file_name = os.path.join(self.name, str(current_theme['id']), key1, key2)
+        asset_file_name = os.path.join(self.name, str(current_theme['id']), key)
         asset_full_name = os.path.join(cache_root(), asset_file_name)
 
         save_timestamp_to_cache_data(asset_file_name)
         else:
             value = asset['value']
 
-        if ( not os.path.exists(os.path.dirname(asset_full_name))):
+        if not os.path.exists(os.path.dirname(asset_full_name)):
             os.makedirs(os.path.dirname(asset_full_name))
 
         with open(asset_full_name, 'wb') as f: