Skip to content

mknrndll icon on windows failing because of broken File.dir() #3652

Description

@nrnhines

On windows, double clicking the mknrndll icon, pressing Choose directory, navigating to a folder, and pressing the Make nrnmech.dll button, pops up the error message notice

Image

The problem can be worked around with

$ git diff
diff --git a/share/lib/hoc/mknrndll.hoc b/share/lib/hoc/mknrndll.hoc
index eb510f788..07e344a30 100755
--- a/share/lib/hoc/mknrndll.hoc
+++ b/share/lib/hoc/mknrndll.hoc
@@ -48,7 +48,7 @@ proc change_working_dir() {
        ldfile.chooser("d", "Directory", "", "Make nrnmech.dll", "Cancel", getcwd())
        if (ldfile.chooser()) {
                read_recent_working_dirs()
-               if (change_working_dir1(ldfile.dir)) {
+               if (change_working_dir1(ldfile.getname())) {
                        exec()
                }
        }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions