-
-
Notifications
You must be signed in to change notification settings - Fork 369
CMake: Create grass.bat and add scripts to PATH #6383
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,11 +131,11 @@ def append_left_main_executable_paths(paths, install_path): | |
path = os.path.join(install_path, "extrabin") | ||
if os.path.exists(path): | ||
paths.appendleft(path) | ||
else: | ||
# Without FHS, scripts are separated like in the source code. | ||
path = os.path.join(install_path, "scripts") | ||
if os.path.exists(path): | ||
paths.appendleft(path) | ||
|
||
# Without FHS, scripts are separated like in the source code. | ||
path = os.path.join(install_path, "scripts") | ||
if os.path.exists(path): | ||
paths.appendleft(path) | ||
Comment on lines
-134
to
+138
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confusing, I would say the original code was wrong for Windows with Autotools because it would skip it. Both the old code and new code should be fine for Linux because there should be no scripts directory AFAIK, but then the comment is misleading. I didn't look at blame - if I'm the author, I would be twice as confused as I'm now. :-) In any case, testing |
||
|
||
|
||
def append_left_addon_paths(paths, config_dir, env): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would appreciate a comment in the source code providing the reason. Something like "Python file has version to avoid issues with import grass statements". It could also be called
grass_main.py
instead of using the version if that would simplify things or help clarity.