It worked, thank you! Silly mistake, sorry. xD

On Monday, November 30, 2020 at 1:42:09 PM UTC-3 MichaelEden wrote:

> You need to create another file inside your script folder named 
> "__init__.py" it can be empty, or you can write something inside, up to 
> you. but the name is fixed, so don't change, delete or rename that file. 
>
> On Tue, Dec 1, 2020, 1:21 AM Matheus Lima <[email protected]> wrote:
>
>> Hi!
>>
>> So I'm a bit new to Python in Maya, and I'm trying to import a script 
>> from a folder called 'matheuslima' that is inside my Maya scripts directory 
>> like this:
>>
>> from matheuslima import ml_twist_bones_ui
>>
>> The error I get:
>> no module named matheuslima
>>
>> Even though the folder is in \Documents\maya\2020\scripts\matheuslima
>> If the script is out of the folder (only in scripts directory), it works 
>> fine like this:
>>
>> import ml_twist_bones_ui
>>
>> But inside the folder, Maya can't locate it. What I'm missing? Thanks!
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/78f30289-19c6-4f5e-a3b9-3635ff082920n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/78f30289-19c6-4f5e-a3b9-3635ff082920n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/19928b94-b600-4b00-a636-f2022ab8686bn%40googlegroups.com.

Reply via email to