stones.py sort-of works
parent
61c5e36537
commit
c0ae0840db
@ -1,11 +1,11 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import pydfhack
|
import pydfhack
|
||||||
DF = pydfhack.API("Memory.xml")
|
DF = pydfhack._API("Memory.xml")
|
||||||
|
|
||||||
if DF.Attach():
|
if DF.Attach():
|
||||||
success,stones = DF.ReadStoneMatgloss()
|
Mats = DF.materials
|
||||||
if success:
|
stones = Mats.Read_Inorganic_Materials()
|
||||||
print "Dumping all stone"
|
print "Dumping all stone"
|
||||||
for matgloss in stones:
|
for matgloss in stones:
|
||||||
print "ID %s, name %s" % (matgloss.id, matgloss.name)
|
print "ID %s, name %s" % (matgloss.id, matgloss.name)
|
||||||
DF.Detach()
|
DF.Detach()
|
||||||
|
Loading…
Reference in New Issue