From 8b0c29cfd141fa9d0d40ebf0470dfccd933f331a Mon Sep 17 00:00:00 2001 From: Brandon Herzog Date: Tue, 19 Dec 2017 12:52:03 -0500 Subject: [PATCH] Ensure jnius_config.set_options and jnius_config.set_classpath set options as list types. --- jnius_config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jnius_config.py b/jnius_config.py index 182e431..d739dba 100644 --- a/jnius_config.py +++ b/jnius_config.py @@ -17,7 +17,8 @@ def set_options(*opts): "Sets the list of options to the JVM. Removes any previously set options." if vm_running: raise ValueError("VM is already running, can't set options") - globals()['options'] = opts + global options + options = list(opts) def add_options(*opts): @@ -41,7 +42,7 @@ def set_classpath(*path): if vm_running: raise ValueError("VM is already running, can't set classpath") global classpath - classpath = path + classpath = list(path) def add_classpath(*path):