From c665972728507b244dc42af750c7d7bee955ea36 Mon Sep 17 00:00:00 2001 From: Lakshmi Vyasarajan Date: Tue, 30 Apr 2013 12:34:16 +0530 Subject: [PATCH] Fix requirejs plugin to use the new deps --- hyde/ext/plugins/requirejs.py | 3 +-- hyde/tests/ext/test_requirejs.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hyde/ext/plugins/requirejs.py b/hyde/ext/plugins/requirejs.py index 399ed67..4edc738 100644 --- a/hyde/ext/plugins/requirejs.py +++ b/hyde/ext/plugins/requirejs.py @@ -18,9 +18,8 @@ Please see the homepage of requirejs for usage details. """ from hyde.plugin import CLTransformer -from hyde.fs import File -import re +from fswrap import File import subprocess class RequireJSPlugin(CLTransformer): diff --git a/hyde/tests/ext/test_requirejs.py b/hyde/tests/ext/test_requirejs.py index c5f73dc..5b4e5eb 100644 --- a/hyde/tests/ext/test_requirejs.py +++ b/hyde/tests/ext/test_requirejs.py @@ -4,11 +4,11 @@ Use nose `$ pip install nose` `$ nosetests` """ -from hyde.fs import File, Folder -from hyde.model import Expando from hyde.generator import Generator from hyde.site import Site +from fswrap import File, Folder + RJS_SOURCE = File(__file__).parent.child_folder('requirejs') TEST_SITE = File(__file__).parent.parent.child_folder('_test')