Skip to content

Commit 1b9c5c9

Browse files
committed
Adding a hello world example
1 parent 83f57ae commit 1b9c5c9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

demo.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
greeting = hello world

demo.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import jprops
2+
3+
# Using jprops to get properties from a java style property file
4+
props = jprops.getJavaProperties(open("demo.properties"))
5+
print props['greeting']

0 commit comments

Comments
 (0)