[change] changed some functions to work with Python 3 and Windows

This commit is contained in:
2017-07-13 17:27:48 +02:00
parent ac25f9cacb
commit f57aa37d99
11 changed files with 47 additions and 35 deletions

View File

@@ -5,7 +5,10 @@ import hashlib
import numpy as np
from scipy.interpolate import splrep, splev
import os
import pwd
try:
import pwd
except:
print('Warning: Could not import module pwd')
import re
import warnings
import subprocess
@@ -258,7 +261,7 @@ def getLogin():
returns the actual user's login ID
:return: login ID
'''
return pwd.getpwuid(os.getuid())[0]
return os.getlogin()
def getOwner(fn):