KiCad / kicad-winbuilder

Windows builder for the KiCad project based on the MSYS2 MinGW system [moved to https://gitlab.com/kicad]
51 stars 24 forks source link

Python console not starting for a lite install #83

Closed nickoe closed 5 years ago

nickoe commented 5 years ago

When installing 5.1.1 i368 (possible earlier and x86_64 as well) and unchecking everything in the installer, the python console does not start.

Maybe we are missing some scripts from plugins.

nickoe commented 5 years ago

It looks like PyShell_pcbnew_startup.py is created in %appdata%/kicad when it work, and not when it does not work...

nickoe commented 5 years ago

It is strange and possibly have something to do with appdata roaming vs appdata local virtualstore.

It looks like when it works it creates 16:24:26.2694886 pcbnew.exe 36344 CreateFile C:\Program Files (x86)\KiCad_32bit4\share\kicad\scripting\kicad_pyshell REPARSE Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Superseded

When it does not work it does: 16:21:12.3223090 pcbnew.exe 25584 CreateFile C:\Users\noestergaard\AppData\Roaming\kicad\scripting\kicad_pyshell NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

According to procmon.

nickoe commented 5 years ago

It was regression primarily caused by https://lists.launchpad.net/kicad-developers/msg38326.html

When I tested this I used the DESTDIR variable to make to "relocate" the install directory, but with the mentioned change this changed behavior.