Revision: 40448
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40448&view=rev
Author:   bob1961
Date:     2010-09-03 15:18:13 +0000 (Fri, 03 Sep 2010)

Log Message:
-----------
Don't worry about resolving relative paths. If not a full path then prepend the 
current working directory to dbi_filename.

Modified Paths:
--------------
    brlcad/trunk/src/librt/db_open.c

Modified: brlcad/trunk/src/librt/db_open.c
===================================================================
--- brlcad/trunk/src/librt/db_open.c    2010-09-03 13:17:06 UTC (rev 40447)
+++ brlcad/trunk/src/librt/db_open.c    2010-09-03 15:18:13 UTC (rev 40448)
@@ -162,13 +162,7 @@
     argv[2] = NULL;
     dbip->dbi_filepath = argv;
 
-    /*
-     * XXX Need code to convert all relative paths to full paths.
-     *
-     * For now, if dirname is "." use the CWD and
-     * update the filename to include the fullpath.
-     */
-    if (argv[1][0] == '.' && argv[1][1] == '\0') {
+    if (argv[1][0] != '/') {
        struct bu_vls fullpath;
 
        bu_vls_init(&fullpath);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to