diff options
author | Marko Kreen | 2009-06-05 10:29:05 +0000 |
---|---|---|
committer | Marko Kreen | 2009-06-07 15:18:48 +0000 |
commit | 49e87a1c2e41ab613f0c383c8749066be92e14d2 (patch) | |
tree | 6da1eb793b1763c617d53ba86fe41008cd26c250 /scripts/scriptmgr.py | |
parent | e9f032912997443878fdd70634ec644d73fef1c8 (diff) |
pkgloader module to be able to coexist with 2.x
Use scheme that pygtk uses to support parallel installations:
import pkgloader
pkgloader.require('skytools', '3.0')
import skytools
This will allow keeping old module installed by default and new
version is used only by request.
Diffstat (limited to 'scripts/scriptmgr.py')
-rwxr-xr-x | scripts/scriptmgr.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/scriptmgr.py b/scripts/scriptmgr.py index 34bdc35d..03b3aa31 100755 --- a/scripts/scriptmgr.py +++ b/scripts/scriptmgr.py @@ -43,7 +43,12 @@ Config template: disabled = 1 """ -import sys, os, skytools, signal, glob, ConfigParser, time +import sys, os, signal, glob, ConfigParser, time + +import pkgloader +pkgloader.require('skytools', '3.0') + +import skytools command_usage = """ %prog [options] INI CMD [subcmd args] |