Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dhruv/1787/import-file…
Browse files Browse the repository at this point in the history
…-move
  • Loading branch information
Dhruv-0-Arora committed Aug 8, 2024
2 parents 7e9d8ff + d8cf880 commit 937a62e
Show file tree
Hide file tree
Showing 67 changed files with 358 additions and 1,662 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
* text=auto

# Workaround for a bug in GitHub's language detection,
# previously half of our code was being counted as JavaScript.. for some reason...
# and we certainly can't have that. - Brandon
*.js linguist-detectable=false
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ If you're a developer who wants to contribute to Synthesis, you're in the right

- [Fission (Core Web App)](/fission/README.md)
- [Fusion Exporter (Fusion exporter to Mirabuf file format)](/exporter/SynthesisFusionAddin/README.md)
- [Installers](/installer/)
- [Fusion Exporter Installer](/installer/)

Follow the above links to the respective READMEs on how to build and run each component.

### Compatibility Notes

As Fusion is not supported on linux, the linux installer does not come with the Fusion Addin for exporting robots and fields.
As Fusion is not officially supported on Linux, we do not provide an installer for the Fusion Exporter on Linux.

## Contributing

Expand Down
47 changes: 26 additions & 21 deletions exporter/SynthesisFusionAddin/Synthesis.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
# DO NOT CHANGE ORDER, OR ADD IMPORTS BEFORE UNTIL END COMMENT

import os
from shutil import rmtree
import sys

import adsk.core

from .src.general_imports import APP_NAME, DESCRIPTION, INTERNAL_ID, gm
from .src.Logging import getLogger, logFailure, setupLogger
from .src.UI import (
HUI,
Camera,
ConfigCommand,
Handlers,
Helper,
MarkingMenu,
ShowAPSAuthCommand,
ShowWebsiteCommand,
)
from .src.UI.Toolbar import Toolbar
# Currently required for `resolveDependencies()`, will be required for absolute imports.
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

from .src.Dependencies import resolveDependencies # isort:skip

# END OF RESTRICTION
# Transition: AARD-1741
# Import order should be removed in AARD-1737 and `setupLogger()` moved to `__init__.py`
from .src.Logging import getLogger, logFailure, setupLogger # isort:skip

# Transition: AARD-1721
# Should attempt to fix this ordering scheme within AARD-1741
from .src.APS import APS # isort:skip
setupLogger()

try:
from .src.general_imports import APP_NAME, DESCRIPTION, INTERNAL_ID, gm
from .src.UI import (
HUI,
Camera,
ConfigCommand,
MarkingMenu,
ShowAPSAuthCommand,
ShowWebsiteCommand,
)
from .src.UI.Toolbar import Toolbar
except (ImportError, ModuleNotFoundError) as error:
getLogger().warn(f"Running resolve dependencies with error of:\n{error}")
result = resolveDependencies()
if result:
adsk.core.Application.get().userInterface.messageBox("Installed required dependencies.\nPlease restart Fusion.")


@logFailure
Expand All @@ -33,7 +39,6 @@ def run(_):
Arguments:
**context** *context* -- Fusion context to derive app and UI.
"""
setupLogger()

# Remove all items prior to start just to make sure
unregister_all()
Expand Down
191 changes: 0 additions & 191 deletions exporter/SynthesisFusionAddin/proto/deps.py

This file was deleted.

Loading

0 comments on commit 937a62e

Please sign in to comment.