mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-15 20:50:05 +00:00
portable way of getting hostname for #55
This commit is contained in:
@@ -8,6 +8,7 @@ entry point
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import socket
|
||||||
from docopt import docopt
|
from docopt import docopt
|
||||||
|
|
||||||
# local imports
|
# local imports
|
||||||
@@ -23,7 +24,7 @@ from dotdrop.utils import *
|
|||||||
|
|
||||||
CUR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
CUR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
LOG = Logger()
|
LOG = Logger()
|
||||||
HOSTNAME = os.uname()[1]
|
HOSTNAME = socket.gethostname()
|
||||||
TILD = '~'
|
TILD = '~'
|
||||||
TRANS_SUFFIX = 'trans'
|
TRANS_SUFFIX = 'trans'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user