This commit is contained in:
Daniel Wallace 2018-03-30 14:34:45 -05:00
parent b03e272e44
commit 2edd5eaf9e
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -127,7 +127,7 @@ class ScriptPathMixin(object):
sfh.write(
'#!{0}\n\n'.format(sys.executable) +
'import sys\n' +
'CODE_DIR="{0}"\n'.format(CODE_DIR) +
'CODE_DIR = r"{0}"\n'.format(CODE_DIR) +
'if CODE_DIR not in sys.path:\n' +
' sys.path.insert(0, CODE_DIR)\n\n' +
'\n'.join(script_template).format(script_name.replace('salt-', ''))