However, the function *did* exist on the previous changeset: Leo 6.7.3-devel, devel branch, build edf4b48991 2023-04-16 08:20:16 -0500
Python 3.11.3, PyQt version 6.4.3 Windows 10 AMD64 (build 10.0.19044) SP0 On Tuesday, April 18, 2023 at 7:01:50 AM UTC-4 lewis wrote: > Running this script from the Leo scripting tutorial: > > > > > > > *fn = g.os_path_finalize_join(g.app.homeDir, 'leo_output_file.txt')with > open(fn, 'w') as f: f.write(c.p.b)with open(fn, 'r') as f: for line > in f.readlines(): g.es <http://g.es>(line.rstrip())* > > Gives traceback: > Leo 6.7.3-devel, devel branch, build e2c9fa06e0 > 2023-04-17 20:36:03 -0500 > Python 3.11.3, PyQt version 6.5.0 > Windows 10 AMD64 (build 10.0.19044) SP0 > exception executing script > Traceback (most recent call last): > File "N:\git\leo-editor\leo\core\leoCommands.py", line 1194, in > executeScript > c.executeScriptHelper(args, define_g, define_name, namespace, script) > File "N:\git\leo-editor\leo\core\leoCommands.py", line 1239, in > executeScriptHelper > exec(compile(script, scriptFile, 'exec'), d) > File "C:/Users/lewisneal/.leo/scriptFile.py", line 3, in <module> > fn = g.os_path_finalize_join(g.app.homeDir, 'leo_output_file.txt') > ^^^^^^^^^^^^^^^^^^^^^^^ > AttributeError: module 'leo.core.leoGlobals' has no attribute > 'os_path_finalize_join' > On Tuesday, April 18, 2023 at 11:44:49 AM UTC+10 Edward K. Ream wrote: > >> PR #3277 <https://github.com/leo-editor/leo-editor/pull/3277> changes >> g.os_path_finalize and g.os_path_finalize_join, and rev 32c9f >> <https://github.com/leo-editor/leo-editor/commit/e2c9fa06e0773a6b780de128d7e9c7c3573aca35> >> >> adds a missing alias. >> >> >> These changes are non-trivial. Please report any problems immediately. >> >> >> Edward >> > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/526b8239-a436-47ee-b575-386d9993d51fn%40googlegroups.com.
