projects
/
sitecorepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a83e258
)
Fixup submod import in sc.py
author
W. Trevor King
<wking@drexel.edu>
Sat, 26 Jun 2010 20:21:17 +0000
(16:21 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Sat, 26 Jun 2010 20:21:17 +0000
(16:21 -0400)
sc.py
patch
|
blob
|
history
diff --git
a/sc.py
b/sc.py
index 22f45c1f5ef4fd9d28b8041f28ea4e045a494e22..8e2db25a943be082fa4d573c3f9fe42276d4414b 100755
(executable)
--- a/
sc.py
+++ b/
sc.py
@@
-8,7
+8,10
@@
if __name__ == '__main__':
command = sys.argv[1]
argv = sys.argv[1:]
-
mod_name = 'sitecore.' + command.replace('-', '.
')
- print mod_name
+
submods = command.split('-
')
+ mod_name = 'sitecore.' + '.'.join(submods)
module = __import__(mod_name)
+ for submod in submods:
+ module = getattr(module, submod)
+
module.main(argv)