Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2006-04-27 17:54:18 (GMT)
committer Dan Williams <dcbw@redhat.com>2006-04-27 17:54:18 (GMT)
commit73ac3be1e694393676152ddb3f6568a12504d264 (patch)
tree185c394823a6b9aa8830c8016251b18015040a92
parentc4781fe8e31b33e3721b6bd864faf1d4feffaef1 (diff)
Add the setup-run-from-source.sh script (doesn't work yet) and allow to run the cactivities from the shell.
-rwxr-xr-xbrowser/browser.py3
-rwxr-xr-xsetup-run-from-source.sh4
-rwxr-xr-xshell/src/shell.py3
3 files changed, 10 insertions, 0 deletions
diff --git a/browser/browser.py b/browser/browser.py
index 1b19c79..8df2695 100755
--- a/browser/browser.py
+++ b/browser/browser.py
@@ -264,3 +264,6 @@ def main():
gtk.main()
except KeyboardInterrupt:
pass
+
+if __name__=="__main__":
+ main()
diff --git a/setup-run-from-source.sh b/setup-run-from-source.sh
new file mode 100755
index 0000000..40a1050
--- /dev/null
+++ b/setup-run-from-source.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# for activity.py
+export PYTHON_PATH=`pwd`/shell/src/
diff --git a/shell/src/shell.py b/shell/src/shell.py
index 5ce526e..880c9c8 100755
--- a/shell/src/shell.py
+++ b/shell/src/shell.py
@@ -300,3 +300,6 @@ def main():
gtk.main()
except KeyboardInterrupt:
pass
+
+if __name__=="__main__":
+ main()