Get the name of the current file .dia

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

Hmm, I’m afraid I’m not immediately aware of a way to get that

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.