Skip to content

Commit

Permalink
Adapt to source files moving to src/.
Browse files Browse the repository at this point in the history
  • Loading branch information
Osku Salerma committed Nov 26, 2011
1 parent a4f3b4d commit acf420b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 19 deletions.
8 changes: 0 additions & 8 deletions Makefile.install

This file was deleted.

8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ Your freshly created Setup-Trelby-<version>.exe should be ready.

On Linux:

$ cd ~/trelby/src
$ ./trelby.py --test
$ cd ~/trelby/
$ src/trelby.py --test

On Windows:

$ cd \trelby\src
$\python23\python trelby.py --test sample.trelby
$ cd \trelby
$\python23\python src/trelby.py --test sample.trelby

(Substitute correct path to python.) The file t.bat contains the
last command.
Expand Down
2 changes: 0 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@

-go through README/INSTALL/t.bat etc and make sure nothing references
python2.3 anymore

-move *.py into src/
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
}

target = { "script" : "trelby.py",
target = { "script" : "src/trelby.py",
"icon_resources": [(1, "icon32.ico")],
}

Expand Down
2 changes: 1 addition & 1 deletion t.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
\python23\python trelby.py --test sample.trelby
\python23\python src/trelby.py --test sample.trelby
4 changes: 2 additions & 2 deletions tests/do_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def getFlags(filename):
# run tests from a single file, either all of them or a specific one.
def doTest(opts):
# FIXME
sys.path.insert(0, "..")
sys.path.insert(0, "../src")

# strip .py suffix
name = opts.file[0:-3]
Expand Down Expand Up @@ -104,7 +104,7 @@ def doTest(opts):
# run all tests
def doTests(opts):
# FIXME
sys.path.insert(0, "..")
sys.path.insert(0, "../src")

# total number of tests (files)
cntTotal = 0
Expand Down
2 changes: 1 addition & 1 deletion trelby.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version=1.6-dev
Encoding=UTF-8
Name=Trelby
Comment=Screenwriting Application
Exec=/opt/trelby/trelby.py
Exec=/opt/trelby/src/trelby.py
Icon=/opt/trelby/resources/icon64.png
Type=Application
Categories=Utility;Publishing;
Expand Down

0 comments on commit acf420b

Please sign in to comment.