Python Forum

Full Version: import
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everybody,
I want to use my own library in my program

import mylib
I don't know what can I do this.
And can you give me a folder with this type of library please.
Can you help me please.

In fact is good I just do a big error.
Excuse me
But if you have question I can respond.
Here is the import statement from the docs
Documentation of Import statement

You statement should work if mylib.py is in the same folder as your program.
(Sep-27-2020, 11:23 AM)jefsummers Wrote: [ -> ]Here is the import statement from the docs
Documentation of Import statement

You statement should work if mylib.py is in the same folder as your program.

Thank you
But I already resolve my problem