email_box = null
def email(message):
email_box = message.text
doge = bot.send_message(message.chat.id, 'Кошелек')
bot.register_next_step_handler(doge, wallet)
def wallet(message):
wallet_ad = message.text
bot.send_message(message.chat.id, wallet_ad, email_box)
shutil.move(file, os.path.join(framesLocation, file))
import os
import shutil
from os import path
filename = os.listdir(os.getcwd())
frames = ['.jpeg', '.jpg', '.svg', '.png', '.PNG']
framesLocation = "Snapshots_temp"
for file in filename:
if os.path.splitext(file)[1] in frames:
if(path.exists(framesLocation)):
shutil.move(file, os.path.join(framesLocation, file))
else:
os.mkdir(framesLocation)
shutil.move(file, os.path.join(framesLocation, file))
if(not exists(os.path.join(framesLocation, file))):
import os
import shutil
from os import path
from os.path import exists
filename = os.listdir(os.getcwd())
frames = ['.jpeg', '.jpg', '.svg', '.png', '.PNG']
framesLocation = "Snapshots_temp"
for file in filename:
if os.path.splitext(file)[1] in frames:
if(not exists(os.path.join(framesLocation, file))):
if(path.exists(framesLocation)):
shutil.move(file, framesLocation)
else:
os.mkdir(framesLocation)
shutil.move(file, framesLocation)