mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
python: Made sure to set sys.argv if it is not set. fixes #2282
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user