Using custom modules in project

Hey!
The picture above is my files structure in my project (easy structure yes)
I would like to use the functions.py file as a module in the bot.py file, but when I import it, it doesn't take it as module, so it doesn't propose me the functions and all the stuff.
Also, when I go in the functions file, and search for usages, it doesn't find anything.

The question is, how to make my file recognized to be used as a module?

0
3 comments

Hi, 

I assume these files are located in a folder, aren't they? 

Please try to import this way: 

import  folder_name.functions

 

Does it work? 

0
Avatar
Permanently deleted user

Hey,

Sorry for the long response.

These files are in the same folder as my current file. I can import them, but it doesn't propose me the functions and all the stuff.

0

Yes, this might be expected behavior. 

 

Could you try :

import  Source_folder_name.functions ?

 

 

0

Please sign in to leave a comment.