Commits

Hanfei Sun committed 827ae44

fix the expanduser part for

Comments (0)

Files changed (13)

docs/Makefile

File contents unchanged.
File contents unchanged.

docs/index.rst

File contents unchanged.

docs/make.bat

File contents unchanged.

samflow/__init__.py

File contents unchanged.

samflow/command.py

 
     def is_exe(fpath):
         return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
-    program = os.path.expanduser(program)
+
     fpath, fname = os.path.split(program)
     if fpath:
         if is_exe(program):
             return program
     else:
         for path in os.environ["PATH"].split(os.pathsep):
-            path = path.strip('"')
+            path = os.path.expanduser(os.path.strip('"'))
             exe_file = os.path.join(path, program)
             if is_exe(exe_file):
                 return exe_file
 
-    return None
+    return None

samflow/helper.py

File contents unchanged.

samflow/testsuite/__init__.py

File contents unchanged.

samflow/testsuite/shell_command.py

File contents unchanged.

samflow/testsuite/test_suite.py

File contents unchanged.

samflow/testsuite/workflow.py

File contents unchanged.

samflow/workflow.py

File contents unchanged.
File contents unchanged.