Skip to content

Conversation

menkar3
Copy link
Contributor

@menkar3 menkar3 commented Mar 1, 2018

No description provided.

@@ -13,21 +13,22 @@
import lib.output
import lib.banner

CUR_DIR = "{}".format(os.getcwd())
Copy link
Contributor Author

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.

Copy link
Contributor

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)
Copy link
Contributor Author

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).

Copy link
Contributor

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:
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor

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

Copy link
Contributor

@Ekultek Ekultek left a 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

@NullArray
Copy link
Owner

I'll merge this into dev-beta, and then add it to master as a quick hotfix.

@NullArray NullArray merged commit 9c96a19 into NullArray:dev-beta Mar 1, 2018
@menkar3 menkar3 deleted the simple branch March 3, 2018 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants