source:
utilitiespy/tudelft/utilities/tools/systemproperties.py@
1323
Last change on this file since 1323 was 1121, checked in by , 2 months ago | |
---|---|
File size: 348 bytes |
Rev | Line | |
---|---|---|
[1119] | 1 | |
2 | from tempfile import gettempdir | |
[1121] | 3 | import os |
4 | from pathlib import Path | |
[1119] | 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 { | |
[1121] | 12 | "java.io.tmpdir":gettempdir(), |
13 | "user.dir":os.getcwd(), | |
14 | "user.home":str(Path.home()) | |
[1119] | 15 | } |
16 |
Note:
See TracBrowser
for help on using the repository browser.