Created
January 23, 2020 16:24
-
-
Save codeonion/a348f3cc3e580347266fec8f1de6c0d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
# GET ORDER ID | |
parser = argparse.ArgumentParser(description='For blog.codeonion.com my visitors!') | |
parser.add_argument("--argument_to_be_passed", required=True, type=str, help="Please pass a value into --argument_to_be_passed") | |
args = parser.parse_args() | |
value = args.argument_to_be_passed | |
print(value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
# GET ORDER ID | |
parser = argparse.ArgumentParser(description='For blog.codeonion.com my visitors!') | |
parser.add_argument("--argument_to_be_passed", required=True, type=str, help="Please pass a value into --argument_to_be_passed") | |
args = parser.parse_args() | |
value = args.argument_to_be_passed | |
print(value) | |
; Autoexecute | |
#NoEnv | |
#SingleInstance force | |
return | |
#^space:: | |
run cmd.exe | |
WinWait, ahk_exe cmd.exe ; Intention to make sure the next line doesn't execute too soon and not hit CMD (I have not checked for an appropriate WinTitle. But you can definitely get it.) | |
Send c:{enter} ; Go to C drive | |
Send cd C:\python\blog\{enter} ; go to script's folder | |
Send python arguments.py --argument_to_be_passed CODEONION{enter} | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Autoexecute | |
#NoEnv | |
#SingleInstance force | |
return | |
#^space:: | |
run cmd.exe | |
WinWait, ahk_exe cmd.exe ; Intention to make sure the next line doesn't execute too soon and not hit CMD (I have not checked for an appropriate WinTitle. But you can definitely get it.) | |
Send c:{enter} ; Go to C drive | |
Send cd C:\python\blog\{enter} ; go to script's folder | |
Send python arguments.py --argument_to_be_passed CODEONION{enter} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment