1. Hanfei Sun
  2. Samflow

Commits

Hanfei Sun  committed 827ae44

fix the expanduser part for

  • Participants
  • Parent commits 13026a5
  • Branches default

Comments (0)

Files changed (13)

File docs/Makefile

File contents unchanged.

File docs/conf.py

File contents unchanged.

File docs/index.rst

File contents unchanged.

File docs/make.bat

File contents unchanged.

File samflow/__init__.py

File contents unchanged.

File samflow/command.py

View file
 
     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

File samflow/helper.py

File contents unchanged.

File samflow/testsuite/__init__.py

File contents unchanged.

File samflow/testsuite/shell_command.py

File contents unchanged.

File samflow/testsuite/test_suite.py

File contents unchanged.

File samflow/testsuite/workflow.py

File contents unchanged.

File samflow/workflow.py

File contents unchanged.

File setup.py

File contents unchanged.