Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hard coded Mod path prevent from starting via FreeCAD -M argument #19

Open
sprhawk opened this issue Feb 25, 2024 · 3 comments
Open

hard coded Mod path prevent from starting via FreeCAD -M argument #19

sprhawk opened this issue Feb 25, 2024 · 3 comments

Comments

@sprhawk
Copy link
Contributor

sprhawk commented Feb 25, 2024

MOD_PATH = Path(fc.getUserAppDataDir()) / 'Mod/freecad.cross'

due to this hard coded UserAppData Path, I cannot start FreeCAD with cross via FreeCAD -M freecad.cross command line

@galou
Copy link
Owner

galou commented Feb 28, 2024

It's not hard-coded since it uses getUserAppDataDir(). What is the error message? Why do you need to pass an additional module path. You can install CROSS like any other FreeCAD plugin.

@sprhawk
Copy link
Contributor Author

sprhawk commented Feb 29, 2024

It's not hard-coded since it uses getUserAppDataDir(). What is the error message? Why do you need to pass an additional module path. You can install CROSS like any other FreeCAD

I used debian with no system provided ROS2, and custom built ROS workspace ( so it is not in system path ), and CROSS requires ROS2 environment setup during start up, I don't want it loaded when I don't uses cross ( don't setup ROS2 environment), and I used FreeCAD -M to specify CROSS path

@galou
Copy link
Owner

galou commented Feb 29, 2024

CROSS is supposed to load also without ROS. If it doesn't, it's a bug.

Would you otherwise have a solution for this issue ?

galou pushed a commit that referenced this issue Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants