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:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user