misc/migration/3.22.1_Any.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Tue, 28 Jun 2016 15:02:04 +0200
branch3.22
changeset 11392 12bebe48b451
parent 11104 269317987dc6
permissions -rw-r--r--
[tox] Ensure virtualenv's python is used to build the documentation

from os import unlink
from os.path import isfile, join
from cubicweb.cwconfig import CubicWebConfiguration as cwcfg

regdir = cwcfg.instances_dir()

if isfile(join(regdir, 'startorder')):
    if confirm('The startorder file is not used anymore in Cubicweb 3.22. '
               'Should I delete it?',
               shell=False, pdb=False):
        unlink(join(regdir, 'startorder'))