r/OpenPythonSCAD • u/WillAdams • Apr 12 '25
Significance of Edit | Preferences | Python | Network Import List?
Is it now necessary to list files there so as to indicate that they are allowed to be imported?
Apparently:
nimport("https://raw.githubusercontent.com/WillAdams/gcodepreview/refs/heads/main/gcodepreview.py")doesn't work anymore:
ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'gcodepreview'
3
Upvotes
2
u/WillAdams Apr 12 '25
Similarly, there is now:
File | Python | "Revoke trusted Python files"
Could we also have "Show trusted Python files"? Could that be a dialog which would allow editing/adding specific files?
Apparently:
doesn't work anymore....
2
u/WillAdams Apr 12 '25
Or, if a file is not trusted, could we get a specific notice to that effect and a dialog which prompts:
1
u/WillAdams May 04 '25
New binary for Windows on the Downloads page which fixes this.
1
u/gadget3D Apr 12 '25
Its a sys.path Problem only. The Lines in the settings only define Template nimport Lines for New Files.
1
u/gadget3D Apr 12 '25
Thx for pointing Out. Will Look Into that