From bcf113cf803bf38279f6f362f114013b26828f67 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 21 Jul 2015 10:06:17 -0400 Subject: [PATCH] remove prints --- attribution.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/attribution.py b/attribution.py index c52f0c1..328168a 100644 --- a/attribution.py +++ b/attribution.py @@ -2,7 +2,6 @@ import os import datetime import logging -import subprocess import pandas as pd from dateutil.relativedelta import relativedelta @@ -212,24 +211,11 @@ class AttributionReport(object): with pd.ExcelWriter(output_path, engine='xlsxwriter') as writer: deduped_df.to_excel(writer, sheet_name='Sheet1', index=False) - # Open the window where the files are - if os.name == "nt": - subprocess.call(["explorer", self.output_dir], shell=True) - else: - subprocess.call(["open", self.output_dir]) - - if __name__ == '__main__': app = AttributionReport(months=6, footer_length=6) - print "setup App" app.set_dataframe_deposit("/Users/tyrelsouza/Dropbox (Addgene)/Addgene Shared/Dev/Attribution Report/deposit_data.csv") - print "set Deposit DF" app.set_dataframe_sf("/Users/tyrelsouza/Dropbox (Addgene)/Addgene Shared/Dev/Attribution Report/salesforce_report.xlsx") - print "Set Salesforce DF" app.set_output_dir("/Users/tyrelsouza/Dropbox (Addgene)/Addgene Shared/Dev/Attribution Report/Output/") - print "set output directory" app.run() - print "App Run" app.save() - print "App Save"