aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIbrahim Mkusa <ibrahimmkusa@gmail.com>2017-04-16 18:45:22 -0400
committerIbrahim Mkusa <ibrahimmkusa@gmail.com>2017-04-16 18:45:22 -0400
commit684f172537d838cb85ade3480600325d50a6c544 (patch)
tree9ca6a98c36906d2d99fd69ba5ebb4d6e3ff779ba
parented029f79066c8566e313794a6f66ae4c73614acc (diff)
use relative paths when opening files
-rw-r--r--.gitignore1
-rw-r--r--Hermes/Makefile2
-rw-r--r--Hermes/server.rkt4
3 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 7c07843..b917769 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
# ignore temporary files
*~
+*.txt
# ignore logs and configuration files
*.out
diff --git a/Hermes/Makefile b/Hermes/Makefile
index fdd9a07..c580a71 100644
--- a/Hermes/Makefile
+++ b/Hermes/Makefile
@@ -1,3 +1,3 @@
# Remove temporary files
clean:
- rm -rf *~ *.out *.conf
+ rm -rf *~ *.out *.conf *.txt
diff --git a/Hermes/server.rkt b/Hermes/server.rkt
index df1cf26..9b1a171 100644
--- a/Hermes/server.rkt
+++ b/Hermes/server.rkt
@@ -77,8 +77,8 @@
(define messages-s (make-semaphore 1)) ;; control access to messages
; two files to store error messages, and channel conversations
-(define error-out (open-output-file "/home/pcuser/Hermes/Hermes/error_server.txt" #:exists 'append))
-(define convs-out (open-output-file "/home/pcuser/Hermes/Hermes/conversations_server.txt" #:exists 'append))
+(define error-out (open-output-file "./error_server.txt" #:exists 'append))
+(define convs-out (open-output-file "./conversations_server.txt" #:exists 'append))
(define error-out-s (make-semaphore 1))
(define convs-out-s (make-semaphore 1))
; TODO finish logging all error related messages to