Skip to content

Commit

Permalink
Make the desktop use CLASSPATH if defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Aug 21, 2012
1 parent 659b1ea commit 93109cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jnius/jnius_jvm_desktop.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ cdef void create_jnienv():
cdef JavaVMOption options[1]
cdef bytes py_bytes

from os import environ
from os.path import realpath
py_bytes = <bytes>('-Djava.class.path={0}'.format(realpath('.')))
cp = environ.get('CLASSPATH') or realpath('.')
py_bytes = <bytes>('-Djava.class.path={0}'.format(cp))
options[0].optionString = py_bytes
options[0].extraInfo = NULL

Expand Down

0 comments on commit 93109cc

Please sign in to comment.