Oct-27-2018, 06:47 PM
Hi, I am currently creating a python scriot which will allow the user to achive different objectives depending upon which option they choose. I am however having an issue with custom modules as I have created an external script i.e. examplescript.py and i wish to have that run within my main python menu whenever someone choose option 1 on the menu but cyrrently at the top when I import the external script with:
Import examplescript
It simply runs the contents on the exterbal script straight away whenever the main python menu is started and I wondering if anyone knew how i get this script to only active when it is suppose to after a user has selected option 1 of the menu and not at any other time. Any help is greatly appreciated.
Thanks.
Import examplescript
It simply runs the contents on the exterbal script straight away whenever the main python menu is started and I wondering if anyone knew how i get this script to only active when it is suppose to after a user has selected option 1 of the menu and not at any other time. Any help is greatly appreciated.
Thanks.