1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 17:14:18 +00:00

portable way of getting hostname for #55

This commit is contained in:
deadc0de6
2018-08-30 21:42:28 +02:00
parent 02e8bb22ee
commit 5c61a24304

View File

@@ -8,6 +8,7 @@ entry point
import os
import sys
import subprocess
import socket
from docopt import docopt
# local imports
@@ -23,7 +24,7 @@ from dotdrop.utils import *
CUR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
LOG = Logger()
HOSTNAME = os.uname()[1]
HOSTNAME = socket.gethostname()
TILD = '~'
TRANS_SUFFIX = 'trans'