python: Made sure to set sys.argv if it is not set. fixes #2282

This commit is contained in:
A_D 2018-12-26 20:37:56 +02:00 committed by TingPing
parent ed55330153
commit 3ebfa83fdd

View File

@ -10,6 +10,9 @@ import traceback
import weakref
from _hexchat_embedded import ffi, lib
if not hasattr(sys, 'argv'):
sys.argv = ['<hexchat>']
VERSION = b'2.0' # Sync with hexchat.__version__
PLUGIN_NAME = ffi.new('char[]', b'Python')
PLUGIN_DESC = ffi.new('char[]', b'Python %d.%d scripting interface'