Skip to content

Commit 7f66c57

Browse files
committed
Custom config filename
1 parent 7661b3a commit 7f66c57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vk_api/vk_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class VkApi(object):
2222
def __init__(self, login=None, password=None, number=None, token=None,
23-
proxies=None, captcha_handler=None,
23+
proxies=None, captcha_handler=None, config_filename=None,
2424
api_version='5.21', app_id=2895443, scope=2097151):
2525
u'''
2626
:param login: Логин ВКонтакте
@@ -48,7 +48,7 @@ def __init__(self, login=None, password=None, number=None, token=None,
4848
self.app_id = app_id
4949
self.scope = scope
5050

51-
self.settings = jconfig.Config(login)
51+
self.settings = jconfig.Config(login, filename=config_filename)
5252

5353
self.http = requests.Session()
5454
self.http.proxies = proxies # Ставим прокси

0 commit comments

Comments
 (0)