summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-06 20:16:41 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-07-06 20:16:55 +0200
commit28940ce457e7a7f3e2d1d6cc0223bc0282ce509e (patch)
tree2b4f9a986169057924b3ae518c2a396394125c3c /lib
parentd96bf94fda6b83b6ff6b641b8b543257caf102fb (diff)
downloadNim-28940ce457e7a7f3e2d1d6cc0223bc0282ce509e.tar.gz
ospaths can always be imported; fixes #4249
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/ospaths.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/ospaths.nim b/lib/pure/ospaths.nim
index 9fc816f2f..65588529e 100644
--- a/lib/pure/ospaths.nim
+++ b/lib/pure/ospaths.nim
@@ -10,7 +10,7 @@
 # Included by the ``os`` module but a module in its own right for NimScript
 # support.
 
-when isMainModule:
+when not declared(os):
   {.pragma: rtl.}
   import strutils