~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to scripting/kicadplugins.i

  • Committer: Maciej Suminski
  • Date: 2013-08-02 13:57:24 UTC
  • mfrom: (4024.1.238 kicad)
  • mto: This revision was merged to the branch mainline in revision 4221.
  • Revision ID: maciej.suminski@cern.ch-20130802135724-gix6orezshkukodv
Upstream merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
            ReloadPlugin(k)
68
68
 
69
69
 
70
 
def LoadPlugins():
 
70
def LoadPlugins( plugpath ):
71
71
    import os
72
72
    import sys
73
73
 
74
 
 
75
74
    kicad_path = os.environ.get('KICAD_PATH')
76
75
    plugin_directories=[]
77
76
 
 
77
    if plugpath and os.path.isdir( plugpath ):
 
78
        plugin_directories.append( plugpath )
 
79
 
78
80
    if kicad_path and os.path.isdir(kicad_path):
79
81
        plugin_directories.append(os.path.join(kicad_path, 'scripting', 'plugins'))
80
82