Permalink
Browse files

[v0.6] Remove `require.paths` in lib/cloudfiles.js

  • Loading branch information...
1 parent 0a6b108 commit 26b0f41d91a5fffcbf2892ee00fbc45574fd54cc @mmalecki mmalecki committed Oct 17, 2011
Showing with 5 additions and 7 deletions.
  1. +5 −7 lib/cloudfiles.js
View
@@ -6,8 +6,6 @@
*
*/
-require.paths.unshift(__dirname);
-
var cloudfiles = exports;
//
@@ -18,12 +16,12 @@ require('pkginfo')(module, 'version');
//
// Resources
//
-cloudfiles.Config = require('cloudfiles/config').Config;
-cloudfiles.Cloudfiles = require('cloudfiles/core').Cloudfiles;
-cloudfiles.Container = require('cloudfiles/container').Container;
-cloudfiles.StorageObject = require('cloudfiles/storage-object').StorageObject;
+cloudfiles.Config = require('./cloudfiles/config').Config;
+cloudfiles.Cloudfiles = require('./cloudfiles/core').Cloudfiles;
+cloudfiles.Container = require('./cloudfiles/container').Container;
+cloudfiles.StorageObject = require('./cloudfiles/storage-object').StorageObject;
//
// Core methods
//
-cloudfiles.createClient = require('cloudfiles/core').createClient;
+cloudfiles.createClient = require('./cloudfiles/core').createClient;

0 comments on commit 26b0f41

Please sign in to comment.