diff options
| -rw-r--r-- | python/common.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/python/common.py b/python/common.py new file mode 100644 index 00000000..80f5226a --- /dev/null +++ b/python/common.py @@ -0,0 +1,13 @@ +import os +import psycopg2 + +if os.name =='nt': + root = "//WDsentinel/share/CorpCDOs" +elif os.name == 'posix': + root = '/home/share/CorpCDOs' + +conn = psycopg2.connect(database="ET", + user="et_user", + password="Serenitas1", + host="192.168.1.108") +cursor = conn.cursor() |
