mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix path
This commit is contained in:
parent
b03e272e44
commit
2edd5eaf9e
1 changed files with 1 additions and 1 deletions
|
@ -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-', ''))
|
||||
|
|
Loading…
Add table
Reference in a new issue