Changeset c2237e
- Timestamp:
- 07/31/07 00:54:12 (6 years ago)
- Children:
- 053fc5
- Parents:
- 297f60
- git-author:
- Tiago de Paula Peixoto <tiago@…> (07/31/07 00:54:12)
- git-committer:
- Tiago de Paula Peixoto <tiago@…> (07/31/07 00:54:12)
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
src/graph-tool (modified) (5 diffs)
-
src/graph/graph_bind.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r297f60 rc2237e 1 2007-07-30 Tiago de Paula Peixoto <tiago@forked.de> 2 3 * src/graph-tool: added better error handling (output to stderr, cleaner information, return error status) 4 5 * src/graph/graph_bind.cc: added license info 6 7 * src/graph-tool: added python metadata 8 1 9 2007-07-29 Tiago de Paula Peixoto <tiago@forked.de> 2 10 -
src/graph-tool
raa8062 rc2237e 18 18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 19 19 20 __author__="Tiago de Paula Peixoto <tiago@forked.de>" 21 __copyright__="Copyright 2007 Tiago de Paula Peixoto" 22 __license__="GPL version 3 or above" 23 __URL__="http://graph-tool.forked.de" 24 20 25 import sys 21 26 … … 23 28 24 29 from libgraph_tool import * 30 __version__= mod_info().version 25 31 26 32 from optparse import * … … 36 42 import time 37 43 import signal 44 import traceback 38 45 from time import * 39 46 from math import * … … 831 838 if len(expressions) > 1: 832 839 exec expressions[0] in edit_vars 833 exec open(os.path.expanduser(expressions[1].strip())).read() in edit_vars 834 else: 835 exec open(os.path.expanduser(expressions[0].strip())).read() in edit_vars 840 exp_file = expressions[1] 841 else: 842 exp_file = expressions[0] 843 exec open(os.path.expanduser(exp_file.strip())).read() in edit_vars 836 844 edit_function = edit_vars["edit_function"] 837 845 else: … … 1075 1083 1076 1084 except (OptionError, HistoryException, IOError, RuntimeError), e: 1077 print "graph-tool error:", e 1085 print >> sys.stderr, "graph-tool error:", e 1086 sys.exit(1) 1078 1087 except KeyboardInterrupt: 1079 pass 1088 print >> sys.stderr, "graph-tool error: Keyboard interrupt." 1089 sys.exit(1) 1090 except: 1091 (file_name, line, function, text) = traceback.extract_tb(sys.exc_info()[2])[-1] 1092 print >> sys.stderr, "graph-tool unknown error: ", sys.exc_info()[1], "[traceback: File %s, line %d, in %s (text: %s)]" % (file_name, line, function, str(text)) 1093 sys.exit(1) -
src/graph/graph_bind.cc
raa8062 rc2237e 206 206 string GetCopyright() const {return COPYRIGHT;} 207 207 string GetVersion() const {return VERSION " (r" SVN_REVISION ")";} 208 string GetLicense() const {return "GPL version 3 or above";} 208 209 }; 209 210 … … 308 309 .add_property("author", &LibInfo::GetAuthor) 309 310 .add_property("copyright", &LibInfo::GetCopyright) 310 .add_property("version", &LibInfo::GetVersion); 311 .add_property("version", &LibInfo::GetVersion) 312 .add_property("license", &LibInfo::GetLicense); 311 313 }
Note: See TracChangeset
for help on using the changeset viewer.


