Z230
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import os,re,fdb,time
|
||||
import logging
|
||||
from FunkceWhereIsDropbox import get_dropbox_path,get_medicus_connection
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
|
||||
|
||||
@@ -16,14 +17,12 @@ def set_single_page_view (filepdfin):
|
||||
|
||||
|
||||
# Connect to the Firebird database
|
||||
conn = fdb.connect(
|
||||
dsn=r'192.168.1.10:m:\medicus\data\medicus.fdb', # Database path
|
||||
user='SYSDBA', # Username
|
||||
password="masterkey", # Password,
|
||||
charset="win1250")
|
||||
# cur = conn.cursor()
|
||||
conn = get_medicus_connection()
|
||||
|
||||
cesta=r"z:\dropbox\ordinace\Dokumentace_ke_zpracování"
|
||||
#Get cesta to Dropbox on working computer
|
||||
dropbox=get_dropbox_path()
|
||||
cesta=dropbox/"Ordinace"/"Dokumentace_ke_zpracování"
|
||||
cestazpracovana=dropbox/"Ordinace"/"Dokumentace_zpracovaná"
|
||||
|
||||
for file in os.listdir(cesta):
|
||||
if file.upper().endswith((".PDF")) and os.path.isfile(os.path.join(cesta,file)):
|
||||
|
||||
Reference in New Issue
Block a user