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

2019-08-27 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: splitting my python code into multiple .py files like in bgt I should point out that the example in post six for multiple imports with a from statement does not need to use indention. I believe Python will accept something like this as wellfrom includes import (test,test1,test2,test3

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

2019-08-27 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: splitting my python code into multiple .py files like in bgt I should point out that the example in post six for multiple imports with a from statement does not need to use indention. I believe Python will accept something like this as wellfrom includes import test,test1,test2

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

2019-08-27 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: splitting my python code into multiple .py files like in bgt Na, you're messing keywords up a bit here. A single file is a module, a folder however is a package and needs to contain a __init__.py file (it may be empty) so you can import modules from it.You also need to import a module

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

2019-08-26 Thread AudioGames . net Forum — Developers room : simter via Audiogames-reflector
Re: splitting my python code into multiple .py files like in bgt I just tried it. I just created a directory called includes and put some files in there. Then i did import includes. But what ever funktion i tried to execute, it failed. Atribute error. Modul includes has no atribute called

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

2019-08-26 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
Re: splitting my python code into multiple .py files like in bgt let's say you have a module called test.And in the test module you have a few functions.What would you do? here is an example:import testt=test.test()t.show_message("the import was successfull...")Don't care to

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

2019-08-26 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
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 dofrom my_module import *to import all stuff from that speci

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

2019-08-26 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: splitting my python code into multiple .py files like in bgt Can't you just import them like librarys? I don't python much so sorry if this is dumb. URL: https://forum.audiogames.net/post/457752/#p457752 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin