hi, i want to get the name of the current file on .dia from python
i have the following code
import os.path
import dia
import string
import sys
class Render:
def init(self):
pass
def begin_render(self, data, filename):
pass
def end_render(self):
name = os.path.split
fname = name[:string.find(name, “.”)] + “.dia”
p = “” + fname
os.system(p)
dia.register_export (“dia”, “dia”, Render())
is there a form to get the name of the current file .dia and get the name without printing the name on a file .txt