Skip to content

Commit 1cbfef2

Browse files
authored
Merge pull request #319 from brandonherzog/fix-config-set
Ensure jnius_config.set_options and jnius_config.set_classpath set options as list types.
2 parents 42a06f8 + 8b0c29c commit 1cbfef2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jnius_config.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def set_options(*opts):
1717
"Sets the list of options to the JVM. Removes any previously set options."
1818
if vm_running:
1919
raise ValueError("VM is already running, can't set options")
20-
globals()['options'] = opts
20+
global options
21+
options = list(opts)
2122

2223

2324
def add_options(*opts):
@@ -41,7 +42,7 @@ def set_classpath(*path):
4142
if vm_running:
4243
raise ValueError("VM is already running, can't set classpath")
4344
global classpath
44-
classpath = path
45+
classpath = list(path)
4546

4647

4748
def add_classpath(*path):

0 commit comments

Comments
 (0)