This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf8 | |
import os, csv | |
print("Welcome to the ImapSync interactive") | |
mode = input("Interactive mode or Read CSV file ? (1/2) ") | |
if mode == "2": | |
#host1;user1;password1;host2;user2;password2 | |
file = input("File path : ") | |
if file: | |
print("Reading file") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Helper: | |
encoding = 'utf-8' | |
def __init__(self, udid, it_pro): | |
self.udid = udid | |
self.itpro = it_pro | |
def employee_id(self): | |
sql = "select emplid from emplid_to_alphaname where alphaname = (%s);", (self.udid, ) |