Skip to content

Instantly share code, notes, and snippets.

@devinrsmith
Created September 23, 2022 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devinrsmith/1d7ba0131c6bbe74ade1b7d293ae282e to your computer and use it in GitHub Desktop.
Save devinrsmith/1d7ba0131c6bbe74ade1b7d293ae282e to your computer and use it in GitHub Desktop.
import sys
import jpyutil
jpy_properties = {
'jpy.pythonPrefix': sys.prefix,
'jpy.programName': sys.executable,
'jpy.pythonLib': jpyutil._find_python_dll_file(fail=True),
'jpy.jpyLib': jpyutil._get_module_path('jpy', fail=True),
'jpy.jdlLib': jpyutil._get_module_path('jdl', fail=True)
}
jpy_properties_format = '\n'.join([ '{}={}'.format(key, value) for key, value in jpy_properties.items() ])
print(jpy_properties_format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment