Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gintro.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ proc prep =
# quit("gintro: tmp directory already exists!")
mkDir(wd)
cd(wd)
mkDir("ngtk3")
cd("ngtk3")

cpFile(this / "tests" / "gen.nim", td / wd / "gen.nim")
cpFile(this / "tests" / "combinatorics.nim", td / wd / "combinatorics.nim")

cd(td)
cd(wd)

mkDir("oldgtk3")
cd("oldgtk3")
try:
exec("wget https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/gobject.nim -O gobject.nim")
exec("wget https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/glib.nim -O glib.nim")
Expand All @@ -57,6 +57,7 @@ proc prep =
echo "Nimgrab should be available in Nim/tools directory. You may compile it with 'nim c -d:ssl nimgrab.nim'"
echo "and put it into your search path"
echo "For the unlikely case that you have already full oldgtk3 package installed, we will just try to continue..."
cd("..")

exec("nim c gen.nim")
mkDir("nim_gi")
Expand All @@ -70,7 +71,6 @@ proc prep =

#task prepare, "preparing gintro":
before install:

echo "preparing gintro"
prep()

Expand Down
4 changes: 2 additions & 2 deletions tests/gen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
# This module is really ugly currently -- the first goal was to get a working gi solution

from os import `/`
import gir
import glib
import oldgtk3/gir
import oldgtk3/glib
import strutils
import sequtils
import streams
Expand Down