mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-05 10:42:33 +01:00
python: Made sure to set sys.argv if it is not set. fixes #2282
This commit is contained in:
parent
ed55330153
commit
3ebfa83fdd
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user