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"