Changeset 175


Ignore:
Timestamp:
05/02/05 04:44:42 (20 years ago)
Author:
Nicholas Riley
Message:

screenshot.py: On Tiger, don't worry if the output file doesn't exist.

setup.py: Use data_files instead of py2app resources, per Bob
Ippolito; it works equivalently and preserves permissions on
error.sh.

error.sh: Custom error handling.

Location:
trunk/1001Screenshot
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/1001Screenshot

    • Property svn:ignore set to
      .gdb_history
      .DS_Store
      build
      dist
  • trunk/1001Screenshot/screenshot.py

    r174 r175  
    106106else:
    107107    check(args, output, retval)
     108    if not os.path.exists(outFile):
     109        # something could have gone wrong, or user cancelled, we don't know
     110        sys.exit(0)
    108111    writtenPaths = [outFile]
    109112
  • trunk/1001Screenshot/setup.py

    r171 r175  
    2929        dict(script='screenshot.py', plist=plist),
    3030    ],
    31     options=dict(
    32         py2app=dict(resources=['/usr/local/bin/launch']),
    33     )
     31    data_files=['/usr/local/bin/launch', '__error__.sh'],
    3432)
Note: See TracChangeset for help on using the changeset viewer.