New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Commands for CMD and PS #74
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, Thanks for the PR!
And you have got the crux of this issue, but this can be fixed with a better approach.
i.e. declare a string cmd ='logic'
and if platform[0] == 'W'
then pass else cmd = './'+cmd
I hope you got what I'm saying. This way you won't have to repeat the dict.
LANGS = [{'req': 'gcc', | ||
import sys | ||
platform = sys.platform | ||
if(platform.lower()== 'windows'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need of brackets around if condition and please give spaces around ==
'link': 'https://golang.org/doc/install', | ||
'compile': 'go build logic.go'}, | ||
] | ||
elif(platform.lower()== 'linux'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make it else
, instead.
@@ -22,4 +51,4 @@ | |||
'command': './logic', | |||
'link': 'https://golang.org/doc/install', | |||
'compile': 'go build logic.go'}, | |||
] | |||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add newline at the end and follow PEP8 guidelines
@Sagar2366 Update on this? |
Checklist:
Issues Solved
Fixes #65