1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

travis / py3 fix - str.replace.

This commit is contained in:
Shlomi Fish 2019-05-05 21:16:07 +03:00
parent 6fbbe82593
commit 2d60bdf726
2 changed files with 2 additions and 4 deletions

View file

@ -65,7 +65,7 @@ mo:
pretest:
@rm -f tests/individually-importing/*.py # To avoid stray files
python scripts/gen_individual_importing_tests.py
python3 scripts/gen_individual_importing_tests.py
TEST_ENV_PATH = "`pwd`:`pwd`/tests/lib"
TEST_ENV = PYTHONPATH="$$PYTHONPATH:"$(TEST_ENV_PATH) PERL5LIB="$$PERL5LIB:"$(TEST_ENV_PATH)

View file

@ -4,7 +4,6 @@
import os
import os.path
import re
import string
from sys import platform
IS_MAC = (platform == "darwin")
@ -15,8 +14,7 @@ for d, _, files in os.walk("pysollib"):
for f in files:
if re.search("\\.py$", f):
module_names.append(
string.replace(d + "/" +
re.sub("\\.py$", "", f), "/", "."))
(d + "/" + re.sub("\\.py$", "", f)).replace("/", "."))
module_names.sort()
for module_name in module_names: