#9 os.sep in cvs MiddleKit/Tests, please.

closed-rejected
nobody
None
5
2002-03-14
2001-04-01
Erik Kruus
No

kruus@hilly:~/CW/ww/cvs/Webware/MiddleKit/Tests$ cvs
diff Test.py
Index: Test.py
===================================================================
RCS file:
/cvsroot/webware/Webware/MiddleKit/Tests/Test.py,v
retrieving revision 1.2
diff -u -r1.2 Test.py
--- Test.py 2001/02/19 03:30:00 1.2
+++ Test.py 2001/04/01 21:36:56
@@ -55,11 +55,11 @@
self.run('python TestDesign.py %s' %
self._modelName)

def createDatabase(self):
- cmd = '%s < GeneratedSQL\Create.sql' %
self.cmdLineDB()
+ cmd = '%s < GeneratedSQL%cCreate.sql' %
(self.cmdLineDB(),os.sep)
self.run(cmd)

def insertSamples(self):
- filename =
'GeneratedSQL\InsertSamples.sql'
+ filename =
'GeneratedSQL%cInsertSamples.sql' % os.sep
if os.path.exists(filename):
cmd = '%s < %s' %
(self.cmdLineDB(), filename)
self.run(cmd)

Discussion

  • Geoff Talvola
    Geoff Talvola
    2002-03-14

    Logged In: YES
    user_id=88162

    MiddleKit/Tests/Tests.py has already been switched from
    backslashes to forward slashes since this patch was
    submitted. It now works on all platforms that I know of,
    so this patch is unnecessary.

    (I actually prefer using forward slashes in these cases
    because it makes the resulting code much more readable,
    IMHO.)

     
  • Geoff Talvola
    Geoff Talvola
    2002-03-14

    • status: open --> closed-rejected