|
6 | 6 | parentFolder = str(Path(__file__).parent.parent) |
7 | 7 | activate_path = parentFolder + '\\env\\Scripts\\activate_this.py' |
8 | 8 |
|
9 | | -activate_path = r'D:\PythonCode\Python_scripts\Projects\PythonVenvForAivia\env\Scripts\activate_this.py' # TODO: test line to remove! |
10 | | - |
11 | 9 | if os.path.exists(activate_path): |
12 | 10 | exec(open(activate_path).read(), {'__file__': activate_path}) |
13 | 11 | print(f'Aivia virtual environment activated\nUsing python: {activate_path}') |
|
28 | 26 | import openpyxl.utils.cell |
29 | 27 |
|
30 | 28 | # Folder to quickly run the script on all Excel files in it |
31 | | -DEFAULT_FOLDER = "" # "D:\\PythonCode\\Python_scripts\\Projects\\ExcelFileHandling\\tests" |
32 | | -DEFAULT_FOLDER = r"D:\Aivia Working Directory\_Customers\BE\Algist\22-07-04 For Training\Batch\2022-08-13-01-19-57 Workflow Living and Dead" |
| 29 | +DEFAULT_FOLDER = "" # example: r"D:\PythonCode\Python_scripts\Projects\ExcelFileHandling" |
33 | 30 |
|
34 | 31 | # Default action when combining multiple spreadsheets (see difference in scenario A and B below). False = A, True = B |
35 | 32 | do_multiple_files_as_cols = False |
@@ -440,14 +437,3 @@ def Mbox(title, text, style): |
440 | 437 | if __name__ == '__main__': |
441 | 438 | params = {} |
442 | 439 | run(params) |
443 | | - |
444 | | -# Changelog: |
445 | | -# v1.00: - using wxPython for the file picker, multiple sheets stored as dictionary of DataFrames (keys = sheet names) |
446 | | -# v1.01: - Adding default values before def run |
447 | | -# v1.02: - Exception handling when measurement name contains dots: 'Std. Dev. Intensity' |
448 | | -# v1.10: - Adding summary tab if needed with object set count. |
449 | | -# - Handles multiple summary tabs and adds counting and % values |
450 | | -# - Added virtual environment activation |
451 | | -# v1.20: - Renaming script to "Process..." |
452 | | -# - Scenario D (individual process) becomes available for multiple selected files |
453 | | -# - Adding a summary table on top of individual files for scenario D |
0 commit comments