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

This commit is contained in:
A_D authored and TingPing committed 2018-12-26 16:58:46 -05:00
1 parent ed55330153
commit 3ebfa83fdd
1 file changed
+3
+3
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'