brotherton-erpnext/patches/july_2013/p09_remove_website_pyc.py
2013-11-20 13:00:28 +05:30

12 lines
461 B
Python

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import webnotes
import os
def execute():
from webnotes.utils import get_base_path
website_py = os.path.join(get_base_path(), "app", "startup", "website.py")
website_pyc = os.path.join(get_base_path(), "app", "startup", "website.pyc")
if not os.path.exists(website_py) and os.path.exists(website_pyc):
os.remove(website_pyc)