In article ,
Thomas Jollans wrote:
>On 07/06/2010 09:11 PM, Aahz wrote:
>> In article
>> <4a3f0ca7-fef0-4f9c-b265-5370e61ed...@d8g2000yqf.googlegroups.com>,
>> moerchendiser2k3 wrote:
>>> Aahz:
Set sys.path to include each script's base dir before running it, then
restore after
On 07/06/2010 09:11 PM, Aahz wrote:
> In article <4a3f0ca7-fef0-4f9c-b265-5370e61ed...@d8g2000yqf.googlegroups.com>,
> moerchendiser2k3 wrote:
>> Aahz:
>>>
>>> Set sys.path to include each script's base dir before running it, then
>>> restore after each script.
>>
>> That works, but doesnt solve
In article <33affa14-ded1-4742-a98f-c478df353...@w31g2000yqb.googlegroups.com>,
moerchendiser2k3 wrote:
>
>Imagine I load them parallel so the GIL might interrupt the
>save-process of sys.modules,
>
>[ENSURE GIL]
>Load Script
>Save sys.modules
>[interrupt]
>Load Script
>Save sys.modules
>...
>
>s
Good idea. Just one thing I thought about:
Imagine I load them parallel so the GIL might
interrupt the save-process of sys.modules,
[ENSURE GIL]
Load Script
Save sys.modules
[interrupt]
Load Script
Save sys.modules
...
so this might run into several other problems.
But maybe I change that so I
In article <4a3f0ca7-fef0-4f9c-b265-5370e61ed...@d8g2000yqf.googlegroups.com>,
moerchendiser2k3 wrote:
>Aahz:
>>
>>Set sys.path to include each script's base dir before running it, then
>>restore after each script.
>
>That works, but doesnt solve the problem.
>
>ScriptA.py has a module in its dir
>Set sys.path to include each script's base dir before running it, then
>restore after each script.
That works, but doesnt solve the problem.
ScriptA.py has a module in its directory called 'bar.py'
ScriptB.py has a module in its directory called 'bar.py'
Imagine the 'bar.py' modules dont have t
In article <8f5014f6-9aa8-44e2-afe1-a1175bcdd...@w31g2000yqb.googlegroups.com>,
moerchendiser2k3 wrote:
>
>I have a serious problem I haven't solved yet, hope one of you can
>help me. The first thing is, I embedded Python into my app and I
>execute several scripts in this environment.
>
>The prob
Hi all,
I have a serious problem I haven't solved yet, hope one of you can
help me. The first thing is, I embedded Python into my app and I
execute several scripts in this environment.
The problem is, the scripts don't import modules from their relative
path. I guess this is related to the sys.pa