shutil tag

3 questions


1 answers
90 views
0
When creating an exe file with pyinstaller, how to include text files together

import shutilimport osimport timedef do(): filename = 'GameUserSettings.ini' username = os.getenv('USERNAME') #dir = 'C:\\Users\\' + username + '\\AppData\\Local\\' dir = 'C:\\Users\\' + username + '\...

2 years ago

1 answers
102 views
0
Shutil and for questions

import globimport shutilimport osimport sysfilename = glob.glob('**/*.jpg', recursive=True)filename = [os.path.basename(name) for name in filename]for name in filename: if not os.path.exists('jpg_file...

2 years ago

1 answers
129 views
0
Python code question shutil, '/'

import shutilfrom tqdm import *import globimport osfrom tkinter import filedialogRoot = filedialog.askdirectory()FolderName = 'Backup_2TB'SrcPath = RootDstPath = os.getcwd() + '/' + FolderNameshutil.c...

2 years ago

© 2024 OneMinuteCode. All rights reserved.