> On 20 Jul 2020, at 16:31, Jonathan Gossage wrote:
>
> I have the following code and I would like to type the variable *contents*:
>
> contents: something = importlib._import_module(name)
>
>
> I have been unable to find out what *something* should be.
types.ModuleType
>
> --
> Jonatha
On 3/31/20 8:00 PM, Dieter Maurer wrote:
Stephan Lukits wrote at 2020-3-31 17:44 +0300:
background:
- a daemon creates package p1 (e.g. directory with __init__.py-file) and
in p1 a module m1 is created.
- Then the daemon wants to import from m1, which functions (so far all
the time
On 3/31/20 9:01 PM, Pieter van Oostrum wrote:
"Dieter Maurer" writes:
Stephan Lukits wrote at 2020-3-31 17:44 +0300:
background:
- a daemon creates package p1 (e.g. directory with __init__.py-file) and
in p1 a module m1 is created.
- Then the daemon wants to import from
Hello,
background:
- a daemon creates package p1 (e.g. directory with __init__.py-file) and
in p1 a module m1 is created.
- Then the daemon wants to import from m1, which functions (so far all
the time).
- Then a module m2 is created in p1 and the daemon wants to import from
m2 which fail
> On 19. Jan 2020, at 19:35, mus...@posteo.org wrote:
>
> Is it actually possible to build a "sandbox" around eval, permitting it
> only to do some arithmetic and use some math functions, but no
> filesystem acces or module imports?
>
> I have an application that loads calculation recipes (a f
> On 28. Nov 2019, at 12:05, Ulrich Goebel wrote:
>
> Hi,
>
> I have to call commands from inside a python skript. These commands are in
> fact other python scripts. So I made
>
>os.system('\.Test.py')
>
> That works.
>
> Now I tried to use
>
>supprocess.call(['.\', 'test.py'])
[