startup.py in the sho root directory
-
28 Januari 2011 15:31
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
Semua Balasan
-
28 Januari 2011 16:52
I placed it in bin, and bin/bin32 and it had absolutely no effect.
-
28 Januari 2011 17:16Moderator
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
- Disarankan sebagai Jawaban oleh Tomasz Naumowicz 28 Januari 2011 20:42
-
28 Januari 2011 17:22That 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.
-
28 Januari 2011 17:31ModeratorThanks for the catch, Frederico, we'll fix that!