mirror of
https://github.com/ONLYOFFICE/build_tools.git
synced 2026-04-07 14:06:31 +08:00
.
This commit is contained in:
@ -5,8 +5,11 @@ import subprocess
|
||||
import sys
|
||||
import config
|
||||
|
||||
def get_script_dir():
|
||||
scriptPath = os.path.realpath(__file__)
|
||||
def get_script_dir(file=""):
|
||||
test_file = file
|
||||
if ("" == file):
|
||||
test_file = __file__
|
||||
scriptPath = os.path.realpath(test_file)
|
||||
scriptDir = os.path.dirname(scriptPath)
|
||||
return scriptDir
|
||||
|
||||
|
||||
Reference in New Issue
Block a user