summaryrefslogtreecommitdiffstats
path: root/pcilib/py.c
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-11 14:24:01 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-11 14:24:01 +0100
commitd7fc669bf0dbe37f46d2efec4940feb8504017c2 (patch)
tree7075ee0851d52f9e448be3ff084dde1c35014558 /pcilib/py.c
parent76ee5a167add1c169a982ab59aa0544f827cb365 (diff)
downloadpcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.tar.gz
pcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.tar.bz2
pcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.tar.xz
pcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.zip
Change no_set_check parameter name. Move Python wrap to separate directory.
Diffstat (limited to 'pcilib/py.c')
-rw-r--r--pcilib/py.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcilib/py.c b/pcilib/py.c
index 57a5f46..664e170 100644
--- a/pcilib/py.c
+++ b/pcilib/py.c
@@ -293,15 +293,15 @@ int pcilib_init_py_script(pcilib_t *ctx, char* module_name, pcilib_script_t **mo
char* pcipywrap_path;
if(app_dir)
{
- pcipywrap_path = malloc(strlen(app_dir) + strlen("/pcilib"));
+ pcipywrap_path = malloc(strlen(app_dir) + strlen("/pywrap"));
if (!pcipywrap_path) return PCILIB_ERROR_MEMORY;
- sprintf(pcipywrap_path, "%s/%s", "/pcilib", ctx->model);
+ sprintf(pcipywrap_path, "%s/%s", "/pywrap", ctx->model);
}
else
{
- pcipywrap_path = malloc(strlen("./pcilib"));
+ pcipywrap_path = malloc(strlen("./pywrap"));
if (!pcipywrap_path) return PCILIB_ERROR_MEMORY;
- sprintf(pcipywrap_path, "%s", "./pcilib");
+ sprintf(pcipywrap_path, "%s", "./pywrap");
}