-
Notifications
You must be signed in to change notification settings - Fork 1.1k
small refactoring for lib/settings & add forgotten .format() to main.py #80
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
Conversation
@@ -13,21 +13,22 @@ | |||
import lib.output | |||
import lib.banner | |||
|
|||
CUR_DIR = "{}".format(os.getcwd()) |
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.
One variable, or ten more function calls.
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.
I mean it's not much different, but I see where you're coming from
make the directory if it does not exist | ||
""" | ||
if not os.path.exists(dir): | ||
os.mkdir(dir) |
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.
I think, two small lines will be better than one-time call of locally defined function (in case of optimization too).
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.
Okay I see what you did, change the variable to path so it doesn't overwrite the built in dir
var
@@ -200,8 +192,10 @@ def animation(text): | |||
global stop_animation | |||
i = 0 | |||
while not stop_animation: | |||
""" |
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.
Why?
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.
You realize that in order to stop the animation, I have to print a new line character otherwise it does an endless cycle
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.
Change variable to path
so it doesn't overwrite built in dir line 133
I'll merge this into dev-beta, and then add it to master as a quick hotfix. |
No description provided.