Jump to content
Sign in to follow this  
tamagochy

Import external script to python panel

Recommended Posts

Is there any explanation how import external script to the python panel in H19 and python3.x? Looks like old solutions for python2.x doesnt work any more.

I created widget in designer and want to add it to python panel but got error.

 

errorH19.jpg

script.JPG

Share this post


Link to post
Share on other sites

Try using relative import istead.

from . import projWindow

 

Edited by Stalkerx777
syntax

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×