From 4a352310c519d72aaa8766e695289c2731cf27f3 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 23 Jul 2013 17:54:16 +0530 Subject: [PATCH] [minor] [fix] remove website.pyc --- patches/july_2013/p09_remove_website_pyc.py | 9 +++++++++ patches/patch_list.py | 1 + 2 files changed, 10 insertions(+) create mode 100644 patches/july_2013/p09_remove_website_pyc.py diff --git a/patches/july_2013/p09_remove_website_pyc.py b/patches/july_2013/p09_remove_website_pyc.py new file mode 100644 index 0000000000..a8eb71adf7 --- /dev/null +++ b/patches/july_2013/p09_remove_website_pyc.py @@ -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) \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index e8a03ff44a..d622cd648c 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -261,4 +261,5 @@ patch_list = [ "execute:webnotes.reload_doc('stock', 'Print Format', 'Delivery Note Modern') # 2013-07-22", "execute:webnotes.reload_doc('stock', 'Print Format', 'Delivery Note Spartan') # 2013-07-22", "patches.july_2013.p08_custom_print_format_net_total_export", + "patches.july_2013.p09_remove_website_pyc", ] \ No newline at end of file