def run_reg(self): print "run_reg" run.setEnvVar("assimp_path", self.assimp_bin_path) run.run_test() rc.run() self.b_update_.config(state=ACTIVE) return 0
def run_reg(self): print "run_reg" run.setEnvVar( "assimp_path", self.assimp_bin_path ) run.run_test() rc.run() self.b_update_.config( state=ACTIVE ) return 0
def apply(self): exe = str( self.e1.get() ) if len( exe ) == 0: return 0 if os.path.isfile( exe ): log( INFO, "Set executable at " + exe) self.assimp_bin_path = exe run.setEnvVar("assimp_path", self.assimp_bin_path) else: log( ERROR, "Executable not found at "+exe ) return 0
def __init__(self, bin_path ): """ Constructs the dialog, you can define which executable shal be used. @param bin_path [in] Path to assimp binary. """ run.setEnvVar( "assimp_path", bin_path ) self.b_run_ = None self.b_update_ = None self.b_res_checker_ = None self.b_quit_ = None if platform.system() == "Windows": self.editor = "notepad" elif platform.system() == "Linux": self.editor = "vim" self.root = None self.width=40