edf-hpc / unclebench

10 stars 4 forks source link

User's home directory hard coded in ubench_config.py #47

Closed erothe closed 5 years ago

erothe commented 5 years ago

Both directories run_dir and resource_dir which are defined in ubench_config.py use a hard coded syntax /home/<userid> which may not always match the real user's home directory .

To improve this behavior, pwd package can be used and the correct value can be found using the following function: pwd.getpwuid(os.getuid()).pw_dir .

erothe commented 5 years ago

Both directories use now the above mentioned method to get the user's home directory. This was implemented in version 0.3.7.