-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
27 lines (22 loc) · 1014 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
cur_dir = os.getcwd().replace(os.sep, '/')
with open('example_workspace/scan_54/conf/config', 'r') as file :
filedata = file.read()
filedata = filedata.replace('CUR_DIR', cur_dir)
with open('example_workspace/scan_54/conf/config', 'w') as file:
file.write(filedata)
with open('example_workspace/scan_54/conf/config_prep', 'r') as file :
filedata = file.read()
filedata = filedata.replace('CUR_DIR', cur_dir)
with open('example_workspace/scan_54/conf/config_prep', 'w') as file:
file.write(filedata)
with open('example_workspace/scan_54/conf/config_disp', 'r') as file :
filedata = file.read()
filedata = filedata.replace('CUR_DIR', cur_dir)
with open('example_workspace/scan_54/conf/config_disp', 'w') as file:
file.write(filedata)
with open('example_workspace/scan_54/conf/config_instr', 'r') as file :
filedata = file.read()
filedata = filedata.replace('CUR_DIR', cur_dir)
with open('example_workspace/scan_54/conf/config_instr', 'w') as file:
file.write(filedata)