Closed MSre-zz closed 4 years ago
did you include the file from test.py (can you show the file test.py)? It is not supposed to pick up new files when they are not included: like that you can have multiple maps. I would also advice against new files directly into the pysrc folder, as they might conflict with map names. Use a different subfolder for map-specific scripts.
Also note that only from xxx import xxx statements are supported.
I did not import the file into the main file. I've spent some time looking at the code and trying some things with init.py to import everything in a subfolder. Nothing is working yet. I'm a total newb with python so maybe I can figure it out given enough time. Hopefully it will work with init.py. Otherwise I'll try changing the build script at my own risk.
I'd like it to be similar to vJASS where there are no additional steps needed after adding the initializer (in this case AddScriptHook). At this point this should no longer be considered an issue since I was just using it wrong.
Thanks for making this. I'm using it to learn python in an environment I'm familiar with.
from ${folder_name} import * did the trick. Took my way too long to figure that out haha.
When I add a new file PyWC3 doesn't seem to pick it up with build. Below I've added classtest.py and mytest1.py. Neither show up as "appended" when running the build command.