420 | | # Create a config.py. Distributions will need to supply their own |
421 | | cfgfile = os.path.join('tortoisehg', 'util', 'config.py') |
422 | | if not os.path.exists(cfgfile) and not os.path.exists('.hg/requires'): |
423 | | f = open(cfgfile, "w") |
424 | | f.write('bin_path = "/usr/bin"\n') |
425 | | f.write('license_path = "/usr/share/doc/tortoisehg/Copying.txt.gz"\n') |
426 | | f.write('locale_path = "/usr/share/locale"\n') |
427 | | f.write('icon_path = "/usr/share/pixmaps/tortoisehg/icons"\n') |
428 | | f.write('nofork = True\n') |
429 | | f.close() |
| 418 | if sys.platform != 'darwin': |
| 419 | _data_files += [('lib/nautilus/extensions-2.0/python', |
| 420 | ['contrib/nautilus-thg.py'])] |
| 421 | |
| 422 | # Create a config.py. Distributions will need to supply their own |
| 423 | cfgfile = os.path.join('tortoisehg', 'util', 'config.py') |
| 424 | if not os.path.exists(cfgfile) and not os.path.exists('.hg/requires'): |
| 425 | f = open(cfgfile, "w") |
| 426 | f.write('bin_path = "/usr/bin"\n') |
| 427 | f.write('license_path = "/usr/share/doc/tortoisehg/Copying.txt.gz"\n') |
| 428 | f.write('locale_path = "/usr/share/locale"\n') |
| 429 | f.write('icon_path = "/usr/share/pixmaps/tortoisehg/icons"\n') |
| 430 | f.write('nofork = True\n') |
| 431 | f.close() |