source:
utilitiespy/tudelft/utilities/tools/systemproperties.py@
1404
Last change on this file since 1404 was 1121, checked in by , 3 months ago | |
---|---|
File size: 348 bytes |
Line | |
---|---|
1 | |
2 | from tempfile import gettempdir |
3 | import os |
4 | from pathlib import Path |
5 | |
6 | def systemproperties(): |
7 | ''' |
8 | returns dict with java-style keywords as "java.io.tmpdir" |
9 | and returns python-appropriate values |
10 | ''' |
11 | return { |
12 | "java.io.tmpdir":gettempdir(), |
13 | "user.dir":os.getcwd(), |
14 | "user.home":str(Path.home()) |
15 | } |
16 |
Note:
See TracBrowser
for help on using the repository browser.