notebook
This commit is contained in:
@@ -5,6 +5,15 @@ import pymysql
|
||||
from pymysql.cursors import DictCursor
|
||||
import socket
|
||||
|
||||
def get_path_ciselniky():
|
||||
hostname = socket.gethostname().strip()
|
||||
if hostname in ("NTBVBHP470G10", "Z230"):
|
||||
return r"u:\Dropbox\!!!Days\Downloads Z230\Pracuji_na\Import"
|
||||
elif hostname == "SESTRA":
|
||||
return r"z:\Dropbox\!!!Days\Downloads Z230\Pracuji_na\Import"
|
||||
else:
|
||||
print(f"Unknown host: {hostname}")
|
||||
return None
|
||||
|
||||
def get_mysql_connection(cursor_mode=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user