Перерисована вторая страница
Добавлена структура для выноса общих функций Проект сломан. Работает только 1я страница. Рефакторинг
This commit is contained in:
10
generalfunction.py
Normal file
10
generalfunction.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import os
|
||||
|
||||
def getFullPath(file):
|
||||
put = os.getcwd()
|
||||
path = str(put) + '\\' + file
|
||||
return path
|
||||
|
||||
file =img/good.jpg
|
||||
p1 = getFullPath("img\error.jpg")
|
||||
print(p1)
|
||||
Reference in New Issue
Block a user