My problem
The current issue: Running python scripts displays a command prompt (cmd.exe).
What I wantTo use my custom command.go to run python scripts and
not show the windows command prompt.
To set the PATH variable via .bat file from command.go for each scite session.
To work around having to set the PATH variable in the Windows GUI before running scite.
What I've triedIf prior to running scite I set the PATH variable to include the path to pythonw.exe , and use python.properities, then the command prompt window doesn't show.
The issue arises when I try to use a custom `command.go.*.py=` I end up with a command prompt window. This is the command I use:
command.go.*.py="$(SciteDefaultHome)\python.run.bat" "$(SciteDefaultHome)" "$(FilePath)"
And the python.run.bat file is this:
@ECHO OFF
CD %1
CD ..\Python
SET Path=%CD%\32bit;%CD%\64bit;%Path%
REG QUERY "HKLM\Hardware\Description\System\CentralProcessor\0" | FIND /i "x86" > NUL && SET OS=32BIT || SET OS=64BIT
IF %OS%==32BIT (32Bit\pythonw.exe -u %2)
IF %OS%==64BIT (64Bit\pythonw.exe -u %2)
My system configurationWindows 10 Pro 64bit 10.0.14393
Scite 3.7.4 Sc1 (single file executable)
Python 3.6 embedabble zip
AutoHotkey 1.1.25.01 zip
g++ 5.3.0
CPU Intel 6700k
RAM 16 GB
SSD 512 GB
My projectI'm facing many issues with a project I'm developing. It is an all-in-one toolkit for beginner programmers. It includes three languages and one text editor:
1) Python
2) AutoHotkey
3) C++
I chose scite for the text editor for several reasons:
1) It is customizable.
2) Build and Go features
3) Ouput pane can take user input.
Those are the main reasons. I couldn't find another editor that checks all those boxes.
Here is a summary of the file and folder structure in the toolkit:
Programming-Toolkit\
├── AutoHotkey\
│ ├── Compiler\
│ └── AutoHotkey.exe
├── C++\
│ └── g++.exe
│
├── Editor\
│ ├── ahk.run.bat
│ ├── c++.run.bat
│ ├── c++.build.bat
│ ├── python.run.bat
│ ├── scite.exe
│ └── SciTEGlobal.properties
└── Python\
├── 32bit\
│ ├── ppython.exe
│ └── ppythonw.exe
└── 64bit\
├── python.exe
└── pythonw.exe