删除 '输出文件.py'

This commit is contained in:
nbwzlyd 2022-09-11 09:59:19 +00:00
parent 4a663956f4
commit 6d6aeb6f1c
1 changed files with 0 additions and 13 deletions

View File

@ -1,13 +0,0 @@
import os
from pathlib import Path # pathlib is recommended
'''
The following switch allows the program runs locally and in the Agit environment without modifications.
'''
if 'CLOUD_PROVIDER' in os.environ and os.environ['CLOUD_PROVIDER'] == 'Agit':
result_path = Path('/root/.agit') # this is the storage path in the Agit environment
else:
result_path = Path('.') # this is the path when the program runs in other environments
outputFile = result_path / 'output.txt'
outputFile.write_text('Hello Agit storage!')