Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 29 additions & 8 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,21 @@ def _create_batch_scripts_initial(self):
echo Binaries = .>>"%tmp_pyz%"
:pyqt4_conf_exist

rem ******************
rem handle Pyzo configuration part
rem ******************
mkdir %HOME%\.pyzo
if exist "%HOME%\.pyzo\config.ssdf" goto after_pyzo_conf
set tmp_pyz="%HOME%\.pyzo\config.ssdf"
echo shellConfigs2 = list:>>%tmp_pyz%
echo dict:>>%tmp_pyz%
echo name = 'Python'>>%tmp_pyz%
echo exe = '.\\python.exe'>>%tmp_pyz%
echo ipython = 'yes'>>%tmp_pyz%
echo gui = 'none'>>%tmp_pyz%

:after_pyzo_conf


rem ******************
rem WinPython.ini part (removed from nsis)
Expand Down Expand Up @@ -788,6 +803,20 @@ def _create_batch_scripts_initial(self):
}
}

#####################
### handle Pyzo configuration part
#####################
$env:tmp_pyz = "$env:HOME\.pyzo"
if (-not (Test-Path "$env:tmp_pyz")) { md -Path "$env:tmp_pyz" }
$env:tmp_pyz = "$env:HOME\.pyzo\config.ssdf"
if (-not (Test-Path "$env:tmp_pyz")) {
shellConfigs2 = list:| Add-Content -Path $env:tmp_pyz
dict:| Add-Content -Path $env:tmp_pyz
name = 'Python'| Add-Content -Path $env:tmp_pyz
exe = '.\\python.exe'| Add-Content -Path $env:tmp_pyz
ipython = 'yes'| Add-Content -Path $env:tmp_pyz
gui = 'none'| Add-Content -Path $env:tmp_pyz
}

#####################
### WinPython.ini part (removed from nsis)
Expand Down Expand Up @@ -1192,14 +1221,6 @@ def _create_batch_scripts(self):

self.create_batch_script('winpyzo.bat',r"""@echo off
call "%~dp0env_for_icons.bat"
mkdir %HOME%\.pyzo
if exist "%HOME%\.pyzo\config.ssdf" goto after_create
set tmp_pyz="%HOME%\.pyzo\config.ssdf"
echo shellConfigs2 = list:>>%tmp_pyz%
echo dict:>>%tmp_pyz%
echo name = 'Python'>>%tmp_pyz%
echo exe = '.\\python.exe'>>%tmp_pyz%
:after_create
cd/D "%WINPYDIR%"
"%WINPYDIR%\scripts\pyzo.exe" %*
""")
Expand Down