diff --git a/README.md b/README.md index 8419e56..3018932 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ 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) | @@ -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) @@ -27,7 +25,7 @@ A list of super awesome scripts which help automate the boring tasks. | [weather_in_a_city](https://github.com/adityaarakeri/super-scripts/tree/master/weather_in_a_city) | [vish1811](https://github.com/vish1811) | [Movie_Recommendation](https://github.com/adityaarakeri/super-scripts/tree/master/Movie_Recommendation) | [vish1811](https://github.com/vish1811) | [translate_excel](https://github.com/adityaarakeri/super-scripts/tree/master/translate_excel) | [loukotal](https://github.com/loukotal) - +| [fix_pip_path](/fix_pip) | [dsp9107](https://github.com/dsp9107) | ## Contribuition Guidelines - Make a **separate folder** for your script. 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 🗝 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 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)