Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- from pathlib import Path
- import csv
- # Script for creating PDF Manuals
- # Define your username
- # Enter your Bergkamp username enclosed in single quotes.
- # This is case-sensitive. It must exactly match the name of your USERS folder.
- # Ex: 'melb'
- username = 'libbyl'
- # Define TempManuals path
- tempmanuals_path = Path(r'F:/USERS/' + username + '/TempManuals')
- # Set TempManuals path as current working directory
- os.chdir(tempmanuals_path)
- # Import Job Materials list to a dictionary
- # Must exactly match name of csv file exported from Infor CSI
- with open('ToExcel_JobMaterials.csv', 'r') as csvfile:
- job_materials = csv.DictReader(csvfile, delimiter='\t')
- for row in job_materials:
- print(row)
Advertisement
Add Comment
Please, Sign In to add comment