brotherton-erpnext/patches/september_2013/p03_move_website_to_framework.py

17 lines
510 B
Python
Raw Normal View History

2013-09-09 06:47:45 +00:00
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import webnotes
from webnotes.utils import get_base_path
2013-09-09 12:01:19 +00:00
import os, shutil
2013-09-09 06:47:45 +00:00
def execute():
# remove pyc files
utils_pyc = os.path.join(get_base_path(), "app", "selling", "utils.pyc")
if os.path.exists(utils_pyc):
os.remove(utils_pyc)
2013-09-10 09:14:36 +00:00
old_path = os.path.join(get_base_path(), "app", "website")
if os.path.exists(old_path):
2013-09-17 09:58:58 +00:00
shutil.rmtree(old_path)