Python has a set of search directories it looks relative to whenever
'import' is invoked. These search directories are defined in the
environment variable PYTHONPATH. You could try appending the root of the
Emscripten directory to PYTHONPATH when invoking the system command
(although I believe that path should always be implied).

I updated my Windows boxes to the anniversary update last weekend, and
didn't notice any difference in behavior there.

2016-08-18 0:54 GMT+03:00 Mark Sibly <[email protected]>:

> Hi,
>
> This probably has nothing to do with emscripten, but I'm hoping someone
> here might be able to help anyway.
>
> I recently got back into some emscripten coding on windows, and found
> nothing was working - I was getting this python error whenever I tried to
> launch em++:
>
> ImportError: No module named tools
>
> In my project, I am actually launching em++ via the mingw system()
> function, so I instead tried the same em++ cmd from a dos prompt and it
> worked!
>
> I have found a work around for now - I need to edit all the emscripten
> .bat files (eg: em++.bat, emar.bat etc) to include...
>
> cd %~dp0
>
> ...just before they launch python.
>
> But this is a project for public consumption, so I can't really instruct
> people to 'edit all the .bat files once you've installed emscripten'!
>
> What's weird is this all used to work fine - I'm using the same versions
> of mingw and emscripten I have been for a while now (5.0.1 and 1.35.0). Is
> there any chance the windows 'anniversary' update changed something?
>
> Any ideas at all?
>
> Bye,
> Mark
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to