Changeset 3293
- Timestamp:
- 03/12/09 08:14:13 (3 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Config.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Config.pm
r3277 r3293 170 170 171 171 172 sub default_plugin_dir {173 my $pluginsdir = File::Spec->catdir(174 $PADRE_CONFIG_DIR,175 'plugins',176 );177 my $plugins_full_path = File::Spec->catdir(178 $pluginsdir, 'Padre', 'Plugin'179 );180 unless ( -e $plugins_full_path) {181 File::Path::mkpath($plugins_full_path) or182 die "Cannot create plugins dir '$plugins_full_path' $!";183 }184 185 # Copy the My Plugin if necessary186 my $file = File::Spec->catfile( $plugins_full_path, 'My.pm' );187 unless ( -e $file ) {188 Padre::Config->copy_original_My_plugin( $file );189 }190 191 return $pluginsdir;192 }193 194 172 # TODO - This should probably live in Padre::PluginManager somewhere 195 173 sub copy_original_My_plugin {
Note: See TracChangeset
for help on using the changeset viewer.
