|
|
@ -11,13 +11,13 @@ log = logging.getLogger(__name__)
|
|
|
|
def envUpdate():
|
|
|
|
def envUpdate():
|
|
|
|
if path.exists(".env.template"):
|
|
|
|
if path.exists(".env.template"):
|
|
|
|
if platform == "win32" or platform == "cygwin":
|
|
|
|
if platform == "win32" or platform == "cygwin":
|
|
|
|
#envTemplate = subprocess.run(
|
|
|
|
envTemplate = subprocess.run(
|
|
|
|
# [r'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe',
|
|
|
|
[r'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe',
|
|
|
|
# r'.\envUpdateWin.ps1'],
|
|
|
|
r'.\envUpdateWin.ps1'],
|
|
|
|
# stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
|
|
|
stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
|
|
|
# shell=True
|
|
|
|
shell=True
|
|
|
|
#)
|
|
|
|
print("Updating .env is unsupported on Windows.")
|
|
|
|
print("Updating is not yet supported on Windows.")
|
|
|
|
)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
elif platform == "darwin" or platform == "linux":
|
|
|
|
elif platform == "darwin" or platform == "linux":
|
|
|
|
envTemplate = subprocess.check_output(
|
|
|
|
envTemplate = subprocess.check_output(
|
|
|
|