[minor] [fix] remove website.pyc

This commit is contained in:
Anand Doshi
2013-07-23 17:54:16 +05:30
parent 56421289cc
commit 4a352310c5
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
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)