__file__ already is absolute
This commit is contained in:
parent
1614b62f70
commit
174aa77280
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ import sys
|
||||||
try:
|
try:
|
||||||
import cdist
|
import cdist
|
||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError:
|
||||||
cdist_bin = os.path.abspath(__file__)
|
cdist_bin = __file__
|
||||||
if os.path.islink(cdist_bin):
|
if os.path.islink(cdist_bin):
|
||||||
cdist_bin = os.readlink(cdist_bin)
|
cdist_bin = os.readlink(cdist_bin)
|
||||||
cdist_dir = os.path.abspath(os.path.join(os.path.dirname(cdist_bin), os.pardir))
|
cdist_dir = os.path.abspath(os.path.join(os.path.dirname(cdist_bin), os.pardir))
|
||||||
|
|
Loading…
Reference in a new issue