Python Forum

Full Version: Python 3 Module Import Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
[Image: fqYPwV]

When i attempt to run the script after creating script 2 as a function and trying to call it, i receive this error.
No error displayed Use code tags, see: https://python-forum.io/misc.php?action=help&hid=25
What do you mean? I followed the way the link says, using the [img] tags but it comes up as 'image' it still works as a link if you click on it to see the image it just isnt displaying within the post.
Your import is:

import RoutingConfigurationScript
So you need to call your function as:

RoutingConfigurationScript.RoutingScript
Thank you very much, i think that is it now working exactly how it is supposed to be.

Thank you both for all your help.
FYI:
Quote:I followed the way the link says, using the [img] tags
use for images:
[img] [/img]
use for python code,
[python] [/python]
you can highlight code then click python icon, will add tags for you.
Pages: 1 2 3