Index
2009-06-27 11:09 – johnf : [dabo-users] Can't deduce HomeDirectory
2009-06-27 14:23 – Paul McNett : Re: [dabo-users] Can't deduce HomeDirectory
2009-06-27 14:54 – johnf : Re: [dabo-users] Can't deduce HomeDirectory
2009-06-27 14:59 – johnf : Re: [dabo-users] Can't deduce HomeDirectory
2009-06-27 15:19 – johnf : Re: [dabo-users] Can't deduce HomeDirectory
Back to top
[dabo-users] Can't deduce HomeDirectory

Author: johnf

Posted: 2009-06-27 11:09:58   Link

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

©2009 johnf
Back to top
Re: [dabo-users] Can't deduce HomeDirectory

Author: Paul McNett

Posted: 2009-06-27 14:23:41   Link

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

©2009 Paul McNett
Back to top
Re: [dabo-users] Can't deduce HomeDirectory

Author: johnf

Posted: 2009-06-27 14:54:07   Link

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

©2009 johnf
Back to top
Re: [dabo-users] Can't deduce HomeDirectory

Author: johnf

Posted: 2009-06-27 14:59:45   Link

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

©2009 johnf
Back to top
Re: [dabo-users] Can't deduce HomeDirectory

Author: johnf

Posted: 2009-06-27 15:19:44   Link

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

©2009 johnf