Re: [Sikuli-driver] [Question #173326]: How can I reload a relative Import?

2011-10-07 Thread Harry Readinger
Question #173326 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/173326 Status: Answered => Solved Harry Readinger confirmed that the question is solved: That works, thanks @RaiMan -- You received this question notification because you are a member of Sikuli Drivers, which

Re: [Sikuli-driver] [Question #173326]: How can I reload a relative Import?

2011-10-07 Thread Harry Readinger
Question #173326 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/173326 Harry Readinger confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer conta

Re: [Sikuli-driver] [Question #173326]: How can I reload a relative Import?

2011-10-06 Thread RaiMan
Question #173326 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/173326 Status: Open => Answered RaiMan proposed the following answer: sorry, stupid answer :-( I guess you have to use: import masterimport reload(masterimport) from masterimport import openTicket , resolveT

Re: [Sikuli-driver] [Question #173326]: How can I reload a relative Import?

2011-10-05 Thread Harry Readinger
Question #173326 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/173326 Status: Answered => Open Harry Readinger is still having a problem: When I use the module name in quotes it throws a "TypeError: reload() argument must be a module" because it reads the argument as a str

Re: [Sikuli-driver] [Question #173326]: How can I reload a relative Import?

2011-10-05 Thread RaiMan
Question #173326 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/173326 Status: Open => Answered RaiMan proposed the following answer: only to be sure: from masterImport import openTicket , resolveTicket , reset reload("masterimport") from masterImport import openTicket , r

[Sikuli-driver] [Question #173326]: How can I reload a relative Import?

2011-10-05 Thread Harry Readinger
New question #173326 on Sikuli: https://answers.launchpad.net/sikuli/+question/173326 I have an import library which just has a bunch of common tasks and functions. I could import the whole module, but would prefer to just import the functions that are needed for that particular script. here i