Skip to content

Commit e56e168

Browse files
committed
default config filename fix
small fixes
1 parent 7f66c57 commit e56e168

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

jconfig/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'''
1010

1111
__author__ = 'Kirill Python'
12-
__version__ = '1.1'
12+
__version__ = '1.2'
1313
__email__ = 'siberianpython@gmail.com'
1414
__contact__ = 'https://vk.com/python273'
1515

jconfig/jconfig.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313

1414

1515
class Config(object):
16-
def __init__(self, section, filename='config'):
16+
def __init__(self, section, filename=None):
17+
18+
if not filename:
19+
filename = 'config'
20+
1721
self.section = section # Секция настроек
1822
self.filename = filename # Файл с настройками
1923
self.all = self.parse() # Все настройки

vk_api/vk_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ def __init__(self, login=None, password=None, number=None, token=None,
3232
:param proxies: proxy server
3333
{'http': 'http://127.0.0.1:8888/',
3434
'https': 'https://127.0.0.1:8888/'}
35+
:param captcha_handler: функция для обработки капчи
36+
:param config_filename: Расположение config файла
37+
3538
:param api_version: Версия API (default: '5.21')
3639
:param app_id: Standalone-приложение (default: 2895443)
3740
:param scope: Запрашиваемые права (default: 2097151)

0 commit comments

Comments
 (0)