diff --git a/README.md b/README.md index 7531ea3..a8c12d0 100644 --- a/README.md +++ b/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 \ No newline at end of file diff --git a/install.bat b/install.bat index 6742252..e723101 100644 --- a/install.bat +++ b/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 \ No newline at end of file +%exe% workers\install.py from_pack workers\packs.txt \ No newline at end of file diff --git a/test.py b/test.py deleted file mode 100644 index 43252d6..0000000 --- a/test.py +++ /dev/null @@ -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) \ No newline at end of file diff --git a/pdf2txt.bat b/ua-path/pdf2txt.bat similarity index 100% rename from pdf2txt.bat rename to ua-path/pdf2txt.bat diff --git a/done.bat b/workers/done.bat similarity index 100% rename from done.bat rename to workers/done.bat diff --git a/install.py b/workers/install.py similarity index 100% rename from install.py rename to workers/install.py diff --git a/pa.ps1 b/workers/pa.ps1 similarity index 100% rename from pa.ps1 rename to workers/pa.ps1 diff --git a/packs.txt b/workers/packs.txt similarity index 100% rename from packs.txt rename to workers/packs.txt diff --git a/path_append.bat b/workers/path_append.bat similarity index 100% rename from path_append.bat rename to workers/path_append.bat diff --git a/timeout.py b/workers/timeout.py similarity index 100% rename from timeout.py rename to workers/timeout.py