-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun.py
30 lines (23 loc) · 935 Bytes
/
run.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
28
29
30
#!/usr/bin/python3
# coding=utf-8
#######################################################
# File : run.py #
# Author : DulLah #
# Github : https://github.com/dz-id #
# Facebook : https://www.facebook.com/dulahz #
# Telegram : https://t.me/DulLah #
# Python version : 3.8+ #
#######################################################
# RECODE? OKE CANTUMKAN NAMA PEMBUAT #
#######################################################
import shutil, platform
py_version = platform.python_version()
if py_version < '3.7':
exit('WARNING anda menggunakan python version %s silahkan upgrade ke 3.7++'%(py_version))
cache = ['src/__pycache__', 'src/data/__pycache__']
for path in cache:
try:
shutil.rmtree(path)
except:
pass
__import__('src.app')