Skip to content

Commit

Permalink
updaterer updated to avoid problems with not skipping user folders...…
Browse files Browse the repository at this point in the history
… this update will will update itself, but i'm going to create a new version because of potential data loss
  • Loading branch information
scoofy committed Oct 18, 2016
1 parent bef0cf9 commit 9c610c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update_wxstocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@
break

# add new files
user_directories = ["DO_NOT_COPY", "user_data", "wxStocks_data", "functions_for_custom_analysis_go_in_here"]
for root, dirs, files in os.walk(newly_downloaded_path):
for filename in files:
if root.split("\\")[-1] in ["DO_NOT_COPY", "user_data", "wxStocks_data"]:
if any(folder_name in root for folder_name in user_directories):
continue
if filename.endswith(".py"):
#print root
Expand Down

0 comments on commit 9c610c1

Please sign in to comment.