from tempfile import gettempdir import os from pathlib import Path def systemproperties(): ''' returns dict with java-style keywords as "java.io.tmpdir" and returns python-appropriate values ''' return { "java.io.tmpdir":gettempdir(), "user.dir":os.getcwd(), "user.home":str(Path.home()) }