summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/python/python.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/python/python.py b/plugins/python/python.py
index 1eeb10b4..942b0ce5 100644
--- a/plugins/python/python.py
+++ b/plugins/python/python.py
@@ -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'