summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2010-11-18 21:25:02 +0000
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2010-11-18 21:25:02 +0000
commita60f8bed7e85693774951cb4877d793539b6c363 (patch)
treec41f5141482af9e27f4a4df7eb8f76bbefd062e6
parentb05053f73048a8db3383239d882f6efdae50915e (diff)
Added main function and conditional execution
-rw-r--r--archey.new20
1 files changed, 12 insertions, 8 deletions
diff --git a/archey.new b/archey.new
index e7dcd3a..ec72334 100644
--- a/archey.new
+++ b/archey.new
@@ -320,11 +320,15 @@ class User(BaseDisplay):
## TEST ## <<< TEMPORARY
-out = Output()
-out.append(Shell())
-out.append(User())
-out.append(Terminal())
-out.append(Uptime())
-out.append(WindowManager())
-#out.append(DesktopEnvirornment())
-out.output()
+def main():
+ out = Output()
+ out.append(Shell())
+ out.append(User())
+ out.append(Terminal())
+ out.append(Uptime())
+ out.append(WindowManager())
+ #out.append(DesktopEnvirornment())
+ out.output()
+
+if __name__ == '__main__':
+ main()