I getting "Can't deduce HomeDirectory" as a info message. Of course this does
not do any harm. I'm just wondering why it was considered important to
record. IOW what was the thinking behind this info message. To avoid the
message is it expected that I place my program in the dabo directory?
--
John Fabiani
johnf wrote:
> I getting "Can't deduce HomeDirectory" as a info message. Of course this
> does
> not do any harm. I'm just wondering why it was considered important to
> record. IOW what was the thinking behind this info message. To avoid the
> message is it expected that I place my program in the dabo directory?
The point of the message is to tell you that HomeDirectory is not set
correctly. This could certainly do harm, if your app relies on basing file
locations off of HomeDirectory for example.
You can set HomeDirectory explicitly.
You are probably not subclassing dApp, but instantiating it directly,
resulting in app.__class__.__file__ pointing to the dabo directory and
thus being useless as HomeDir location.
Paul
On Saturday 27 June 2009 11:23:41 am Paul McNett wrote:
> You can set HomeDirectory explicitly
How can I set it? Below does not work.
app = dabo.dApp()
app.Icon = "pes.ico"
app.BasePrefKey = "PesED"
app.setAppInfo("appName", "PES Education")
app.setAppInfo("appShortName", "PES Education")
app.setAppInfo("Icon", "pes.ico")
app._setHomeDirectory('/home/johnf/pyProject/pyProject/pespy')
--
John Fabiani
On Saturday 27 June 2009 11:54:07 am johnf wrote:
> On Saturday 27 June 2009 11:23:41 am Paul McNett wrote:
> > You can set HomeDirectory explicitly
>
> How can I set it? Below does not work.
>
> app = dabo.dApp()
> app.Icon = "pes.ico"
> app.BasePrefKey = "PesED"
> app.setAppInfo("appName", "PES Education")
> app.setAppInfo("appShortName", "PES Education")
> app.setAppInfo("Icon", "pes.ico")
> app._setHomeDirectory('/home/johnf/pyProject/pyProject/pespy')
also this does not appear to work
app.HomeDirectory ='/home/johnf/pyProject/pyProject/pespy'
--
John Fabiani
On Saturday 27 June 2009 11:59:45 am johnf wrote:
> On Saturday 27 June 2009 11:54:07 am johnf wrote:
> > On Saturday 27 June 2009 11:23:41 am Paul McNett wrote:
> > > You can set HomeDirectory explicitly
> >
> > How can I set it? Below does not work.
> >
> > app = dabo.dApp()
> > app.Icon = "pes.ico"
> > app.BasePrefKey = "PesED"
> > app.setAppInfo("appName", "PES Education")
> > app.setAppInfo("appShortName", "PES Education")
> > app.setAppInfo("Icon", "pes.ico")
> > app._setHomeDirectory('/home/johnf/pyProject/pyProject/pespy')
>
> also this does not appear to work
> app.HomeDirectory ='/home/johnf/pyProject/pyProject/pespy'
but this does work
app = dabo.dApp(HomeDirectory ='/home/johnf/pyProject/pyProject/pespy')
--
John Fabiani