meta_link = wget(self.meta_link).json()
mkdir(CLIENT_PATH+"\\libraries")
i = 0
for library in meta_link['libraries']:
i += 1
try:
library = library['downloads']['artifact']
except KeyError:
library = library['downloads']['classifiers']['natives-windows']
local_path = CLIENT_PATH + '\\libraries\\' + library['path']
local_path = local_path.replace('/', '\\')
library_url = library['url']
print("Downloading libraries")
try:
r = wget(library_url)
open(local_path, 'wb').write(r.content)
except FileNotFoundError:
makedirs(local_path)
r = wget(library_url)
open(local_path, 'wb').write(r.content)
print("Downloading {}/{}".format(i, len(meta_link['libraries'])))
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\danch\\AppData\\Roaming\\.launcor\\libraries\\com\\mojang\\patchy\\1.1\\patchy-1.1.jar'
как исправить?
1. На какую строку ругается? 2. Что ты за хрень творишь?
Обсуждают сегодня