summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorJoey Payne <jyapayne@gmail.com>2015-04-24 11:25:00 -0600
committerJoey Payne <jyapayne@gmail.com>2015-04-24 11:25:00 -0600
commit01e9c7d450eb676b1ecd257f8de378ef410d76fd (patch)
treeb585e03704d76b7922652320307f967bc4121775 /compiler
parent6c6a52ff3ae260221ad99f048c7a9effcaa5111e (diff)
downloadNim-01e9c7d450eb676b1ecd257f8de378ef410d76fd.tar.gz
Removed explicit imports in compiler/nimfix/*.nim and added cfg path modification
Diffstat (limited to 'compiler')
-rw-r--r--compiler/nimfix/nimfix.nim5
-rw-r--r--compiler/nimfix/nimfix.nim.cfg2
-rw-r--r--compiler/nimfix/pretty.nim6
-rw-r--r--compiler/nimfix/prettybase.nim3
4 files changed, 6 insertions, 10 deletions
diff --git a/compiler/nimfix/nimfix.nim b/compiler/nimfix/nimfix.nim
index 0c5e2a88b..7b42537c4 100644
--- a/compiler/nimfix/nimfix.nim
+++ b/compiler/nimfix/nimfix.nim
@@ -10,9 +10,8 @@
 ## Nimfix is a tool that helps to convert old-style Nimrod code to Nim code.
 
 import strutils, os, parseopt
-import compiler/options, compiler/commands, compiler/modules, compiler/sem,
-       compiler/passes, compiler/passaux, pretty, compiler/msgs,
-       compiler/nimconf, compiler/extccomp, compiler/condsyms, compiler/lists
+import options, commands, modules, sem, passes, passaux, pretty, msgs, nimconf,
+  extccomp, condsyms, lists
 
 const Usage = """
 Nimfix - Tool to patch Nim code
diff --git a/compiler/nimfix/nimfix.nim.cfg b/compiler/nimfix/nimfix.nim.cfg
index 31a41e080..47b4a3713 100644
--- a/compiler/nimfix/nimfix.nim.cfg
+++ b/compiler/nimfix/nimfix.nim.cfg
@@ -5,7 +5,7 @@ hint[XDeclaredButNotUsed]:off
 path:"$projectPath/../.."
 
 path:"$lib/packages/docutils"
-path:"$nim/compiler"
+path:"../compiler"
 
 define:useStdoutAsStdmsg
 symbol:nimfix
diff --git a/compiler/nimfix/pretty.nim b/compiler/nimfix/pretty.nim
index 081a1d372..acac574af 100644
--- a/compiler/nimfix/pretty.nim
+++ b/compiler/nimfix/pretty.nim
@@ -11,10 +11,8 @@
 ## to convert Nim code into a consistent style.
 
 import 
-  strutils, os, intsets, strtabs, ropes,
-  compiler/options, compiler/ast, compiler/astalgo,
-  compiler/msgs, compiler/idents, compiler/semdata,
-  prettybase
+  strutils, os, options, ast, astalgo, msgs, ropes, idents,
+  intsets, strtabs, semdata, prettybase
 
 type
   StyleCheck* {.pure.} = enum None, Warn, Auto
diff --git a/compiler/nimfix/prettybase.nim b/compiler/nimfix/prettybase.nim
index 839c1ff8f..225b78479 100644
--- a/compiler/nimfix/prettybase.nim
+++ b/compiler/nimfix/prettybase.nim
@@ -7,8 +7,7 @@
 #    distribution, for details about the copyright.
 #
 
-import strutils, lexbase, streams, compiler/ast, compiler/msgs,
-       compiler/idents
+import ast, msgs, strutils, idents, lexbase, streams
 from os import splitFile
 
 type