diff options
author | Claire Wolf <clifford@clifford.at> | 2020-04-10 14:08:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 14:08:39 +0200 |
commit | 879d5b261c9035fef915671b9a9f85f3ae46a223 (patch) | |
tree | 47dbe6b20205c9faecee0217a863486e68ef253e /icebox/icebox_maps.py | |
parent | d1cee1d4ae545fdca995cd656ef52d8923aa77e9 (diff) | |
parent | fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e (diff) | |
download | icestorm-879d5b261c9035fef915671b9a9f85f3ae46a223.tar.gz icestorm-879d5b261c9035fef915671b9a9f85f3ae46a223.tar.bz2 icestorm-879d5b261c9035fef915671b9a9f85f3ae46a223.zip |
Merge pull request #248 from mmicko/program_prefix
Support custom PROGRAM_PREFIX
Diffstat (limited to 'icebox/icebox_maps.py')
-rwxr-xr-x | icebox/icebox_maps.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/icebox/icebox_maps.py b/icebox/icebox_maps.py index 35ff316..062335d 100755 --- a/icebox/icebox_maps.py +++ b/icebox/icebox_maps.py @@ -17,20 +17,21 @@ import icebox from icebox import re_match_cached -import getopt, sys, re +import getopt, sys, re, os mode = None def usage(): + program_short_name = os.path.basename(sys.argv[0]) print("Usage:") - print(" icebox_maps -m bitmaps") - print(" icebox_maps -m io_tile_nets_l") - print(" icebox_maps -m io_tile_nets_r") - print(" icebox_maps -m io_tile_nets_t") - print(" icebox_maps -m io_tile_nets_b") - print(" icebox_maps -m logic_tile_nets") - print(" icebox_maps -m ramb_tile_nets") - print(" icebox_maps -m ramt_tile_nets") + print(" %s -m bitmaps" % program_short_name) + print(" %s -m io_tile_nets_l" % program_short_name) + print(" %s -m io_tile_nets_r" % program_short_name) + print(" %s -m io_tile_nets_t" % program_short_name) + print(" %s -m io_tile_nets_b" % program_short_name) + print(" %s -m logic_tile_nets" % program_short_name) + print(" %s -m ramb_tile_nets" % program_short_name) + print(" %s -m ramt_tile_nets" % program_short_name) sys.exit(0) try: |