Clean .pyc files before starting

This commit is contained in:
Ruud
2014-06-15 22:22:34 +02:00
parent a196a499ae
commit e659aba176
3 changed files with 38 additions and 28 deletions
+6 -1
View File
@@ -19,7 +19,12 @@ base_path = dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(base_path, 'libs'))
from couchpotato.environment import Env
from couchpotato.core.helpers.variable import getDataDir
from couchpotato.core.helpers.variable import getDataDir, removePyc
# Remove pyc files before dynamic load (sees .pyc files regular .py modules)
removePyc(base_path)
class Loader(object):