Lines Matching refs:os
25 import os
30 flags = os.O_RDONLY
32 with os.fdopen(os.open(path, flags, modes), 'r') as file:
51 flags = os.O_WRONLY | os.O_CREAT | os.O_EXCL
53 with os.fdopen(os.open(save_path + file_name, flags, modes), 'wb+') as file:
92 file_path = os.path.abspath(__file__)
93 file_dir = os.path.dirname(file_path)
101 if not os.path.exists(download_path):
102 os.makedirs(download_path)
112 flags = os.O_WRONLY
114 with os.fdopen(os.open(os.path.join(download_path, 'version.txt'), flags, modes), 'w') as file: