mirror of https://github.com/kivy/pyjnius.git
Merge pull request #319 from brandonherzog/fix-config-set
Ensure jnius_config.set_options and jnius_config.set_classpath set options as list types.
This commit is contained in:
commit
1cbfef23fb
|
@ -17,7 +17,8 @@ def set_options(*opts):
|
||||||
"Sets the list of options to the JVM. Removes any previously set options."
|
"Sets the list of options to the JVM. Removes any previously set options."
|
||||||
if vm_running:
|
if vm_running:
|
||||||
raise ValueError("VM is already running, can't set options")
|
raise ValueError("VM is already running, can't set options")
|
||||||
globals()['options'] = opts
|
global options
|
||||||
|
options = list(opts)
|
||||||
|
|
||||||
|
|
||||||
def add_options(*opts):
|
def add_options(*opts):
|
||||||
|
@ -41,7 +42,7 @@ def set_classpath(*path):
|
||||||
if vm_running:
|
if vm_running:
|
||||||
raise ValueError("VM is already running, can't set classpath")
|
raise ValueError("VM is already running, can't set classpath")
|
||||||
global classpath
|
global classpath
|
||||||
classpath = path
|
classpath = list(path)
|
||||||
|
|
||||||
|
|
||||||
def add_classpath(*path):
|
def add_classpath(*path):
|
||||||
|
|
Loading…
Reference in New Issue