summaryrefslogtreecommitdiff
authorDustin Frisch <fooker@lab.sh>2013-11-07 14:34:54 (GMT)
committer Dustin Frisch <fooker@lab.sh>2013-11-07 14:38:06 (GMT)
commit2ebbc94535d364c3a0810375b897112e49d538f2 (patch) (side-by-side diff)
treeaccb71c47371eaeb98957f7273014997da4b1f38
parentcc374261a48635ce100860d7a8e5cc6f38e177a7 (diff)
downloadttrace-master.zip
ttrace-master.tar.gz
Setup addedHEADmaster
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--setup.py2
-rw-r--r--ttrace/__init__.py0
-rw-r--r--ttrace/__main__.py (renamed from ttrace.py)11
3 files changed, 8 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index f5f4f55..c2a677c 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setuptools.setup(
entry_points = {
'console_scripts' : [
- 'ttrace = ttrace:main'
+ 'ttrace = ttrace.__main__:main'
]
},
)
diff --git a/ttrace/__init__.py b/ttrace/__init__.py
new file mode 100644
index 0000000..e69de29
--- a/dev/null
+++ b/ttrace/__init__.py
diff --git a/ttrace.py b/ttrace/__main__.py
index 0541d9c..9b336bd 100644
--- a/ttrace.py
+++ b/ttrace/__main__.py
@@ -8,6 +8,12 @@ import datetime
from gi.repository import Gtk, Gdk
+
+# Initialize started time as 'not started'
+started = None
+
+
+
def main():
# Parse command line arguments
if len(sys.argv) == 1:
@@ -21,9 +27,6 @@ def main():
sys.exit(255)
- # Initialize started time as 'not started'
- started = None
-
# Helper function to update a model
def update_model(model):
model.clear()
@@ -236,4 +239,4 @@ def main():
if __name__ == '__main__':
- main() \ No newline at end of file
+ main()