Skip to content
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

Don't add invalid paths to IMG_PATH #2243

Merged
merged 1 commit into from
Apr 30, 2015
Merged

Don't add invalid paths to IMG_PATH #2243

merged 1 commit into from
Apr 30, 2015

Conversation

ericfrederich
Copy link

This happens to work today because directories are only one level deep
under images so "path" was always the same as "_root".

Also, rename variables to match os.walk's documentation.

This happens to work today because directories are only one level deep
under images so "path" was always the same as "_root".

Also, rename variables to match os.walk's documentation.
@ccordoba12 ccordoba12 added this to the v2.4 milestone Mar 14, 2015
@goanpeca
Copy link
Member

Any update on this one @ccordoba12, @ericfrederich ?

@@ -179,9 +179,9 @@ def add_image_path(path):
return
global IMG_PATH
Copy link
Contributor

Choose a reason for hiding this comment

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

Nothing to do with this PR, but why is this line necessary? IMG_PATH will be taken from the outer namespace. It would be necessary if there was IMG_PATH = something, but here we're only .append()ing to it.

@Nodd
Copy link
Contributor

Nodd commented Apr 30, 2015

We should merge this one, I see nothing wrong with this code.

@ccordoba12
Copy link
Member

Ok, merging then per @Nodd's wishes ;-)

ccordoba12 added a commit that referenced this pull request Apr 30, 2015
Don't add invalid paths to IMG_PATH
@ccordoba12 ccordoba12 merged commit 7bd0327 into spyder-ide:master Apr 30, 2015
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.

4 participants