From 0dd03ffd5c03226f8dde8c59c5bfc78c24e89c82 Mon Sep 17 00:00:00 2001 From: Dhawal Singh Panwar Date: Mon, 14 Oct 2019 12:33:08 +0530 Subject: [PATCH 1/9] Fix Path Error For Python And Pip In Windows --- fixPipError/fixPath.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 fixPipError/fixPath.py diff --git a/fixPipError/fixPath.py b/fixPipError/fixPath.py new file mode 100644 index 0000000..f66e91f --- /dev/null +++ b/fixPipError/fixPath.py @@ -0,0 +1,22 @@ +import os, sys, ctypes +import subprocess as sp + +def is_admin(): + try: + return ctypes.windll.shell32.IsUserAnAdmin() + except: + return False + +if is_admin(): + + py_path = os.getcwd() + + f=open("update.bat","w+") + f.write("setx /m Path \"%Path%" + py_path + ";" + py_path+"\Scripts;\"\n") + #f.write("pause") + f.close() + + sp.call("update.bat") + +else: + ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, __file__, None, 1) From 5495cbebca2e341164f067471f003e414b158887 Mon Sep 17 00:00:00 2001 From: Dhawal Singh Panwar Date: Mon, 14 Oct 2019 22:28:31 +0530 Subject: [PATCH 2/9] typo --- file_encrypt_decrypt/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file_encrypt_decrypt/README.md b/file_encrypt_decrypt/README.md index f417bbe..7c5bbeb 100644 --- a/file_encrypt_decrypt/README.md +++ b/file_encrypt_decrypt/README.md @@ -26,4 +26,4 @@ $ pipenv run python crypt -d file.enc ``` **note** - `file.enc` will be created if you pass in `file.txt` -- Do not loose the Encryption 🗝 \ No newline at end of file +- Do not lose the Encryption 🗝 From 987be4a0c537f85eeba92677eadb906fe5d30a88 Mon Sep 17 00:00:00 2001 From: Dhawal Singh Panwar Date: Mon, 14 Oct 2019 23:12:32 +0530 Subject: [PATCH 3/9] Fix Path Error For Python And Pip In Windows --- fix-pip-error/fix-path.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 fix-pip-error/fix-path.py diff --git a/fix-pip-error/fix-path.py b/fix-pip-error/fix-path.py new file mode 100644 index 0000000..f66e91f --- /dev/null +++ b/fix-pip-error/fix-path.py @@ -0,0 +1,22 @@ +import os, sys, ctypes +import subprocess as sp + +def is_admin(): + try: + return ctypes.windll.shell32.IsUserAnAdmin() + except: + return False + +if is_admin(): + + py_path = os.getcwd() + + f=open("update.bat","w+") + f.write("setx /m Path \"%Path%" + py_path + ";" + py_path+"\Scripts;\"\n") + #f.write("pause") + f.close() + + sp.call("update.bat") + +else: + ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, __file__, None, 1) From db91c41773623f5da091f5d8500c85b4f7bed90c Mon Sep 17 00:00:00 2001 From: Dhawal Singh Panwar Date: Mon, 14 Oct 2019 23:12:56 +0530 Subject: [PATCH 4/9] Delete fixPath.py --- fixPipError/fixPath.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 fixPipError/fixPath.py diff --git a/fixPipError/fixPath.py b/fixPipError/fixPath.py deleted file mode 100644 index f66e91f..0000000 --- a/fixPipError/fixPath.py +++ /dev/null @@ -1,22 +0,0 @@ -import os, sys, ctypes -import subprocess as sp - -def is_admin(): - try: - return ctypes.windll.shell32.IsUserAnAdmin() - except: - return False - -if is_admin(): - - py_path = os.getcwd() - - f=open("update.bat","w+") - f.write("setx /m Path \"%Path%" + py_path + ";" + py_path+"\Scripts;\"\n") - #f.write("pause") - f.close() - - sp.call("update.bat") - -else: - ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, __file__, None, 1) From d038f45f7707acf04da67b09777c5568e7de46d5 Mon Sep 17 00:00:00 2001 From: Dhawal Singh Panwar Date: Mon, 14 Oct 2019 23:15:33 +0530 Subject: [PATCH 5/9] Fix Path Error For Pip In Windows --- fix_pip/fix_pip_error.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 fix_pip/fix_pip_error.py diff --git a/fix_pip/fix_pip_error.py b/fix_pip/fix_pip_error.py new file mode 100644 index 0000000..f66e91f --- /dev/null +++ b/fix_pip/fix_pip_error.py @@ -0,0 +1,22 @@ +import os, sys, ctypes +import subprocess as sp + +def is_admin(): + try: + return ctypes.windll.shell32.IsUserAnAdmin() + except: + return False + +if is_admin(): + + py_path = os.getcwd() + + f=open("update.bat","w+") + f.write("setx /m Path \"%Path%" + py_path + ";" + py_path+"\Scripts;\"\n") + #f.write("pause") + f.close() + + sp.call("update.bat") + +else: + ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, __file__, None, 1) From 348776a21825c62ebd7817471ad74596263dbc0d Mon Sep 17 00:00:00 2001 From: Dhawal Singh Panwar Date: Mon, 14 Oct 2019 23:15:44 +0530 Subject: [PATCH 6/9] Delete fix-path.py --- fix-pip-error/fix-path.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 fix-pip-error/fix-path.py diff --git a/fix-pip-error/fix-path.py b/fix-pip-error/fix-path.py deleted file mode 100644 index f66e91f..0000000 --- a/fix-pip-error/fix-path.py +++ /dev/null @@ -1,22 +0,0 @@ -import os, sys, ctypes -import subprocess as sp - -def is_admin(): - try: - return ctypes.windll.shell32.IsUserAnAdmin() - except: - return False - -if is_admin(): - - py_path = os.getcwd() - - f=open("update.bat","w+") - f.write("setx /m Path \"%Path%" + py_path + ";" + py_path+"\Scripts;\"\n") - #f.write("pause") - f.close() - - sp.call("update.bat") - -else: - ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, __file__, None, 1) From 1dc20596bacc42dfeb2111f560d2e9b38b67a221 Mon Sep 17 00:00:00 2001 From: Dhawal Singh Panwar Date: Mon, 14 Oct 2019 23:30:04 +0530 Subject: [PATCH 7/9] Create README.md --- fix_pip/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 fix_pip/README.md diff --git a/fix_pip/README.md b/fix_pip/README.md new file mode 100644 index 0000000..3c4c9ad --- /dev/null +++ b/fix_pip/README.md @@ -0,0 +1,16 @@ +# fix_pip + +Fixes `'pip' not found` Error In Windows . + +### Requirements + +Runtime Environment And Required Python Packages : +- Windows Platform +- Python 3.7.3 + + - subprocess + - ctypes + +### Usage + +- run `fix_pip_error.py` +- done From c626be75ad0a8e9241314e683f93e88eb6a55bb3 Mon Sep 17 00:00:00 2001 From: Dhawal Singh Panwar Date: Wed, 16 Oct 2019 11:41:21 +0530 Subject: [PATCH 8/9] Added 'fix_pip_path' --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 83c7fdb..380857f 100644 --- a/README.md +++ b/README.md @@ -5,17 +5,18 @@ A list of super awesome scripts which help automate the boring tasks. ## So far added -| Script | Contributor| +| Script | Contributor | |--|--| -|[file_encrypt_decrypt](https://github.com/adityaarakeri/super-scripts/tree/master/file_encrypt_decrypt) | [Adi](https://github.com/adityaarakeri) | -|[app_opener](https://github.com/adityaarakeri/super-scripts/tree/master/app_opener) | [U-ways](https://github.com/U-ways) | -| [ad_change_check](https://github.com/adityaarakeri/super-scripts/tree/master/ad_change_check) | [jscooksey](https://github.com/jscooksey) -| [folder_autosync](https://github.com/adityaarakeri/super-scripts/tree/master/folder_autosync) | [szhou42](https://github.com/szhou42) -|[video_length_calculator](https://github.com/adityaarakeri/super-scripts/tree/master/video_length_calculator) | [ali-abz](https://github.com/ali-abz) | -| [arch_linux](https://github.com/adityaarakeri/super-scripts/tree/master/arch_linux) | [crouther](https://github.com/crouther) -| [wifi_to_eth](https://github.com/adityaarakeri/super-scripts/tree/master/wifi_to_eth) | [crouther](https://github.com/crouther) -|[file_finder](https://github.com/adityaarakeri/super-scripts/tree/master/file_finder) | [poszy](https://github.com/poszy) | -| [makere](https://github.com/adityaarakeri/super-scripts/tree/master/makere) | [aksJain0](https://github.com/aksJain0) +| [file_encrypt_decrypt](https://github.com/adityaarakeri/super-scripts/tree/master/file_encrypt_decrypt) | [Adi](https://github.com/adityaarakeri) | +| [app_opener](https://github.com/adityaarakeri/super-scripts/tree/master/app_opener) | [U-ways](https://github.com/U-ways) | +| [ad_change_check](https://github.com/adityaarakeri/super-scripts/tree/master/ad_change_check) | [jscooksey](https://github.com/jscooksey) | +| [folder_autosync](https://github.com/adityaarakeri/super-scripts/tree/master/folder_autosync) | [szhou42](https://github.com/szhou42) | +| [video_length_calculator](https://github.com/adityaarakeri/super-scripts/tree/master/video_length_calculator) | [ali-abz](https://github.com/ali-abz) | +| [arch_linux](https://github.com/adityaarakeri/super-scripts/tree/master/arch_linux) | [crouther](https://github.com/crouther) | +| [wifi_to_eth](https://github.com/adityaarakeri/super-scripts/tree/master/wifi_to_eth) | [crouther](https://github.com/crouther) | +| [file_finder](https://github.com/adityaarakeri/super-scripts/tree/master/file_finder) | [poszy](https://github.com/poszy) | +| [makere](https://github.com/adityaarakeri/super-scripts/tree/master/makere) | [aksJain0](https://github.com/aksJain0) | +| [fix_pip_path](/fix_pip) | [dsp9107](https://github.com/dsp9107) | ## Contribuition Guidelines - Make a **separate folder** for your script. From 4c45fa65430e5fcc7c837f66dc7a503ce609c01a Mon Sep 17 00:00:00 2001 From: Dhawal Singh Panwar Date: Mon, 21 Oct 2019 10:41:46 +0530 Subject: [PATCH 9/9] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index b611aa5..3018932 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,8 @@ A list of super awesome scripts which help automate the boring tasks. | [wifi_to_eth](https://github.com/adityaarakeri/super-scripts/tree/master/wifi_to_eth) | [crouther](https://github.com/crouther) |[file_finder](https://github.com/adityaarakeri/super-scripts/tree/master/file_finder) | [poszy](https://github.com/poszy) | | [makere](https://github.com/adityaarakeri/super-scripts/tree/master/makere) | [aksJain0](https://github.com/aksJain0) - |[Sha1-brutefore](https://github.com/adityaarakeri/super-scripts/tree/master/Sha1-brutefore) | [nitish](https://github.com/nitishsai9) | |[portScanner](https://github.com/adityaarakeri/super-scripts/tree/master/portScanner) | [nitish](https://github.com/nitishsai9) | - |[loop_command](https://github.com/adityaarakeri/super-scripts/tree/master/loop_command) | [jeancsil](https://github.com/jeancsil) | [autofill_information](https://github.com/adityaarakeri/super-scripts/tree/master/autofill_information) | [pcube99](https://github.com/pcube99) |[raw_to_jpeg](https://github.com/adityaarakeri/super-scripts/tree/master/raw_to_jpeg) | [Sadeed](https://github.com/Sadeed)