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

Improve the script path processing. #26

Merged
merged 1 commit into from Oct 12, 2020

Conversation

schmidtw
Copy link
Contributor

@schmidtw schmidtw commented Oct 8, 2020

This change adds the ability to point to a script file that includes
other script files the same as the script library that comes with QCAD.
The included files are included based on the following search order:

  1. The initial script's path
  2. The local script directory path (platform dependent)
  3. The script directory next to the executable
  4. The built in script files via a library

To ensure consistency on possibly overwritten files in different
locations, the list duplication removal function was replaced with a
version that maintains the order of the list.

This change adds the ability to point to a script file that includes
other script files the same as the script library that comes with QCAD.
The included files are included based on the following search order:
 1. The initial script's path
 2. The local script directory path (platform dependent)
 3. The script directory next to the executable
 4. The built in script files via a library

To ensure consistency on possibly overwritten files in different
locations, the list duplication removal function was replaced with a
version that maintains the order of the list.
@qcad qcad merged commit 09a5c0e into qcad:master Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants