~lottanzb/lottanzb/xdg-location

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Severin Heiniger
  • Date: 2009-02-03 22:04:47 UTC
  • mfrom: (572.1.49 plugins)
  • Revision ID: severinheiniger@gmail.com-20090203220447-ennr7ecy5okyf4nd
Support for plugins added.

The Newzbin and categorization features have been turned into plugins. More plugins to follow.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
                        ("$datadir/glade", glob("data/glade/*.*")),
69
69
                   ]
70
70
 
 
71
# Recursively add all plugin files to DATA_FILES.
 
72
for root, dirs, files in os.walk("plugins"):
 
73
    for a_file in files:
 
74
        if not a_file.endswith(".pyc"):
 
75
            DATA_FILES.append((join("$datadir", root), [join(root, a_file)]))
 
76
 
71
77
def remove(path, dry_run=False):
72
78
    """
73
79
    Remove a certain file or directory.
527
533
                            "locale": "$prefix/share/locale"
528
534
                         },
529
535
    "resources"        : {
 
536
                            "plugins": "$datadir/plugins",
530
537
                            "help": "$prefix/share/gnome/help/lottanzb"
531
538
                         },
532
539
    "cmdclass"         : {