kopia lustrzana https://github.com/inkstitch/inkstitch
20 wiersze
572 B
Python
Executable File
20 wiersze
572 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
|
|
sys.path.append('embroidermodder/experimental/python/binding')
|
|
from libembroidery import *
|
|
|
|
formatList = embFormatList_create()
|
|
curFormat = formatList
|
|
while(curFormat):
|
|
extension = embFormat_extension(curFormat)
|
|
description = embFormat_description(curFormat)
|
|
writerState = embFormat_writerState(curFormat)
|
|
|
|
if writerState.strip() and embFormat_type(curFormat) != EMBFORMAT_OBJECTONLY:
|
|
print '<_option value="%s">%s(%s)</_option>' % (extension[1:], description, extension.upper())
|
|
|
|
curFormat = curFormat.next
|
|
|