Browse Source

Cut back on files in main directory

removed some of the exports that were going on in install
master
Raphael Roberts 7 years ago
parent
commit
2803e81246
  1. 3
      README.md
  2. 9
      install.bat
  3. 5
      test.py
  4. 0
      ua-path/pdf2txt.bat
  5. 0
      workers/done.bat
  6. 0
      workers/install.py
  7. 0
      workers/pa.ps1
  8. 0
      workers/packs.txt
  9. 0
      workers/path_append.bat
  10. 0
      workers/timeout.py

3
README.md

@ -1,8 +1,7 @@
# auto_python
##TODO:
* Reduce the number of files
* Make it work with any winpython distro
* Make a folder and put all user-defined scripts there
* Automatically upload changes to Google Drive (need to update the google drive python wrapper)
* Test in vm

9
install.bat

@ -3,7 +3,6 @@
for %%d in (%~dp0.) do set Directory=%%~fd
for %%d in (%~dp0..) do set ParentDirectory=%%~fd
REM goto skipTestq
for /f "usebackq tokens=*" %%a in (`dir /B ^| findstr /r /i winpython.*`) do (
set setup=%%a
@ -11,26 +10,24 @@ for /f "usebackq tokens=*" %%a in (`dir /B ^| findstr /r /i winpython.*`) do (
)
:skipA
set Directory=%~dp0
REM echo %setup%
"%Directory%\%setup%"
set winpython=%%a
:skipTest
for /f "usebackq tokens=*" %%a in (`dir /A:D /B ^| findstr /r /i w.*py.*`) do (
set winpython=%%a
goto skipB
)
:skipB
:skipBq
set winpython="%Directory%\%winpython%"
for /f "usebackq tokens=*" %%a in (`dir /A:D /B %winpython% ^| findstr /r /i python.*`) do (
set exe=%%a
goto skipC
)
:skipC
workers\path_append "%winpython%\%exe%"
set exe="%winpython%\%exe%\python.exe"
setx winpython %winpython%
setx python %exe%
md "%winpython%\settings\.idlerc"
copy config-highlight.cfg %winpython%\settings\.idlerc
md "%appdata%\Notepad++\themes"
copy themes "%appdata%\Notepad++\themes"
%exe% install.py from_pack packs.txt
%exe% workers\install.py from_pack workers\packs.txt

5
test.py

@ -1,5 +0,0 @@
import webbrowser
urL='https://drive.google.com'
firefox_path="C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"
webbrowser.register('firefox', None,webbrowser.BackgroundBrowser(firefox_path))
webbrowser.get('firefox').open_new_tab(urL)

pdf2txt.bat → ua-path/pdf2txt.bat

done.bat → workers/done.bat

install.py → workers/install.py

pa.ps1 → workers/pa.ps1

packs.txt → workers/packs.txt

path_append.bat → workers/path_append.bat

timeout.py → workers/timeout.py

Loading…
Cancel
Save