Relative Import is broken? Python API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey Everyone, I'm wanting to split my add-in into multiple modules for organization purposes. I've used relative imports as suggested in every single post I could find on importing modules into an addin/script, and VS Code is able to resolve the imports properly, however, when I run the add-in in Fusion it doesn't work unless all of the code I've written is in the Test.py file that was created when I created the Add-in through Fusion. I'm kind of lost here, and I hope that someone will be able to help me figure out what's going on.
I have two PATH system variables on my system for some reason, they are as follows:
%AppData%\Roaming\Autodesk\Autodesk Fusion 360\API\Python\defs
%AppData%\Roaming\Autodesk\Autodesk Fusion 360\API\AddIns
Below is a screenshot of VSCode