Re: splitting my python code into multiple .py files like in bgt

You'll have to "write a module", even though you don't have to do anything to make it an actual module. Then just import it like in bgt. You could also do

from my_module import *

to import all stuff from that specific module, which will end in a bloated namespace which works similar to how BGT handles things, but i wouldn't recommend that, it can possibly slow your code down and doesn't look nice, because you don't know where certain things come from / are located and thus you'll have to fix them if they're broken.
Best Regards.
Hijacker



-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : simter via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : simter via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector

Reply via email to