startup.py in the sho root directory
-
Friday, January 28, 2011 3:31 PM
Hello,
I installed sho and was trying to edit a few of the default settings to make sho more usable, but I was having a few minor issues. I can change the default text editor by following the instructions in the book of sho, but I found no startup.py in the sho root directory or anywhere inside sho.
I created a startup.py from scratch and placed it in C:\Program Files (x86)\Sho 2.0 for .NET 4
# Sets Visual Studio as the default editor for Sho
sys.Sho.Editor = "devenv.exe"
sys.Sho.EditorArgs = "%f /command \"edit.goto %l\""
# Adds cPython Libraries
sys.path.append(r"C:\Python27\Lib\site-packages")Running a new instance of sho however doesn't save any of the changes.
Sho 2.0.4 on IronPython 2.6.1 (), .NET 4.0.30319.1 and MKL 10.3.
Includes parts of the Intel Math Kernel Library for Windows.
>>> sys.Sho.Editor
'notepad'
>>>Am I screwing anything up?
Federico
All Replies
-
Friday, January 28, 2011 4:52 PM
I placed it in bin, and bin/bin32 and it had absolutely no effect.
-
Friday, January 28, 2011 5:16 PMModerator
Hi Federico,
The startup.py file is located in a "Sho" subdirectory of your "My Documents" folder (it should get created the first time you run Sho).
(In a previous version, it was located in the main Sho directory -- I'll check the documentation to see if it needs to be updated.)
Thanks!
The Team of Sho
- Proposed As Answer by Tomasz Naumowicz Friday, January 28, 2011 8:42 PM
-
Friday, January 28, 2011 5:22 PMThat fixed it, thanks. The documentation (at least, from The Book of Sho) says the file is in the directory indicated by shodir. The mistake is at the top of page 9.
-
Friday, January 28, 2011 5:31 PMModeratorThanks for the catch, Frederico, we'll fix that!

