armory/blender/make_utils.py
2016-10-25 13:01:20 +02:00

27 lines
746 B
Python
Executable file

import utils
import subprocess
def kode_studio():
sdk_path = utils.get_sdk_path()
project_path = utils.get_fp()
if utils.get_os() == 'win':
kode_path = sdk_path + '/kode/win32/Kode Studio.exe'
elif utils.get_os() == 'mac':
kode_path = '"' + sdk_path + '/kode/Kode Studio.app/Contents/MacOS/Electron"'
else:
kode_path = sdk_path + '/kode/linux64/kodestudio'
subprocess.Popen([kode_path + ' ' + utils.get_fp()], shell=True)
def def_strings_to_array(strdefs):
defs = strdefs.split('_')
defs = defs[1:]
defs = ['_' + d for d in defs] # Restore _
return defs
def get_kha_target(target_name): # TODO: remove
if target_name == 'macos':
return 'osx'
return target_name